Sha256: 8a2d198b592f220bd655f6e995f4b6b582a7be4af12f1cd36e57015ee216cf12
Contents?: true
Size: 1.09 KB
Versions: 8
Compression:
Stored size: 1.09 KB
Contents
$el = $('.element_editor[data-element-id="<%= @element.id %>"]') <% if @error %> $("#element_<%= @element.id -%>_folder_spinner").replaceWith("<span class='error_icon' title='<%= @error -%>'>!</span>") <% else %> $el = $el.replaceWith('<%= escape_javascript render(:partial => "element", :object => @element) -%>') $('#element_area .sortable_cell').sortable('refresh') Alchemy.ElementEditorSelector.reinit('.element_editor[data-element-id="<%= @element.id %>"]') <% if @element.folded %> <% @element.rtf_contents.each do |content| %> rtf_<%= content.id -%> = tinymce.get '<%= content.form_field_id -%>' rtf_<%= content.id -%>.remove() if rtf_<%= content.id %> `delete rtf_<%= content.id -%>` <%- end %> <%- else %> $el.trigger('Alchemy.SelectElementEditor') Alchemy.SelectBox('select', $el) <% @element.rtf_contents.each do |content| %> Alchemy.Tinymce.addEditor '<%= content.form_field_id -%>' <% end %> Alchemy.ElementDirtyObserver $el Alchemy.Datepicker('input[type="date"]', $el) Alchemy.ButtonObserver('button.button', $el) Alchemy.overlayObserver "#element_<%= @element.id -%>" <% end %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems