app/views/alchemy/admin/essence_files/assign.js.erb in alchemy_cms-2.7.0 vs app/views/alchemy/admin/essence_files/assign.js.erb in alchemy_cms-2.7.1

- old
+ new

@@ -1,15 +1,14 @@ (function($) { - var $el = $('#element_<%= @content.element.id %>'); $('#<%= content_dom_id(@content) %>').replaceWith('<%= escape_javascript( render partial: "alchemy/essences/essence_file_editor", formats: [:html], locals: { content: @content, options: @options } ) %>'); Alchemy.closeCurrentWindow(); Alchemy.reloadPreview(); - Alchemy.setElementDirty($el); - Alchemy.overlayObserver($el); + Alchemy.setElementDirty($('#element_<%= @content.element.id %>')); + Alchemy.overlayObserver($('#<%= content_dom_id(@content) %>')); })(jQuery);