Sha256: e0335e6e849d81f4625bb050d6753e11715e33d64e48eda60e499922ec9ed228
Contents?: true
Size: 863 Bytes
Versions: 50
Compression:
Stored size: 863 Bytes
Contents
(function() { var $el = $('.element-editor[data-element-id="<%= @element.id %>"]'); <% if @error -%> $("#element_<%= @element.id %> .spinner") .replaceWith("<span class='error_icon' title='<%= @error %>'>!</span>"); <% else -%> $el.replaceWith('<%= j render(Alchemy::ElementEditor.new(@element)) %>'); $el = $('#element_<%= @element.id %>'); $('#element_area .sortable-elements').sortable('refresh'); <% if @element.folded? -%> Alchemy.Tinymce.remove(<%= @element.richtext_contents_ids.to_json %>); <% else -%> $el.trigger('FocusElementEditor.Alchemy'); Alchemy.Tinymce.init(<%= @element.richtext_contents_ids.to_json %>); Alchemy.GUI.initElement($el); Alchemy.SortableElements( <%= @page.id %>, '<%= form_authenticity_token %>', $('> .nestable-elements .nested-elements', $el) ); <% end -%> <% end -%> })();
Version data entries
50 entries across 50 versions & 1 rubygems