Skip to content

Commit

Permalink
Merge branch 'devel' of github.com:transifex/transifex-live-wordpress
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Jackowski committed May 13, 2016
2 parents 4fcad4b + 0d16ea0 commit e322803
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions javascript/transifex-live-integration-settings-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ function addTransifexLanguages(obj) {
jQuery('#transifex_live_language_map_template').clone().show().addClass('cloned-language-map').each(
function (ii, oo) {
jQuery(oo).find('span.tx-language').text(o.tx_name);
jQuery(oo).find('input.tx-code').attr('id', myId).attr('name', myName).val(lm[0][o.code]);
jQuery(oo).find('input.tx-hreflang').attr('id', myHreflangId).attr('name', myHreflangName).val(hm[0][o.code]);
var lmval = (typeof lm[0] != 'undefined')?lm[0][o.code]:'';
jQuery(oo).find('input.tx-code').attr('id', myId).attr('name', myName).val(lmval);
var hmval = ( typeof hm[0] != 'undefined')?hm[0][o.code]:'';
jQuery(oo).find('input.tx-hreflang').attr('id', myHreflangId).attr('name', myHreflangName).val(hmval);
}
)
);
Expand Down

0 comments on commit e322803

Please sign in to comment.