Skip to content

Commit

Permalink
Update HtmlEditorField.Translatable.js
Browse files Browse the repository at this point in the history
Should resolve Issue #214
  • Loading branch information
flxlabs authored and dhensby committed Mar 9, 2016
1 parent 1ad0d0b commit 7bfece9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions javascript/HtmlEditorField.Translatable.js
Expand Up @@ -6,7 +6,7 @@
// show language field for internal links
var linkType = this.find(':input[name=LinkType]:checked').val(), list = ['internal', 'external', 'file', 'email'];
if(linkType == 'internal') {
this.find('.field#Language').show();
this.find('.field.languagedropdown').show();
}
},
updateFromEditor: function() {
Expand All @@ -30,10 +30,10 @@
$('form.htmleditorfield-linkform #Form_EditorToolbarLinkForm_Language').entwine({
onchange: function(e) {
// reload tree with selected locale
var treeDropdown = $(this).parents('form').find('#internal .treedropdown');
var treeDropdown = $(this).parents('form').find('#Form_EditorToolbarLinkForm_internal_Holder .TreeDropdownField');
treeDropdown.data('urlTree', $.path.addSearchParams(treeDropdown.data('urlTree').replace(/Locale=[^&]*/, ''), 'Locale='+$(this).val()));
treeDropdown.loadTree();
}
});
});
}(jQuery));
}(jQuery));

0 comments on commit 7bfece9

Please sign in to comment.