From 7b11ced8e7d31e16dd13b7731586e774eb54d35e Mon Sep 17 00:00:00 2001 From: flxlabs Date: Thu, 4 Feb 2016 14:42:11 +0100 Subject: [PATCH] Update HtmlEditorField.Translatable.js Should resolve Issue #214 --- javascript/HtmlEditorField.Translatable.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/HtmlEditorField.Translatable.js b/javascript/HtmlEditorField.Translatable.js index 8830659..2e5551b 100644 --- a/javascript/HtmlEditorField.Translatable.js +++ b/javascript/HtmlEditorField.Translatable.js @@ -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() { @@ -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)); \ No newline at end of file +}(jQuery));