Sha256: 68fb05d7eef59ac0b470abfe08a8d8d14b3ef4967caeea79e7545b4f18dd1d8b
Contents?: true
Size: 1.18 KB
Versions: 4
Compression:
Stored size: 1.18 KB
Contents
(function($) { <%- if @page.can_have_cells? -%> Alchemy.selectOrCreateCellTab('<%= @cell.nil? ? "for_other_elements" : @cell.name -%>', '<%= @cell.nil? ? _("other Elements") : @cell.name_for_label -%>'); <%- end -%> $('#cell_<%= @cell.nil? ? "for_other_elements" : @cell.name -%>').append('<%= escape_javascript render(:partial => "element", :object => @element, :locals => {:draggable => true}) -%>'); $('#cell_<%= @cell.nil? ? "for_other_elements" : @cell.name -%>').sortable('refresh'); Alchemy.growl('<%= _("successfully_added_element") -%>'); Alchemy.closeCurrentWindow(); <%- @element.rtf_contents.each do |content| -%> TinymceHammer.addEditor('<%= content.form_field_id -%>'); <%- end -%> Alchemy.PreviewWindow.refresh(); Alchemy.ElementEditorSelector.init(); $('.element_editor[data-element-id="<%= @element.id -%>"]').trigger('Alchemy.SelectElementEditor'); Alchemy.ElementDirtyObserver('#element_<%= @element.id -%>'); Alchemy.SelectBox('#element_<%= @element.id -%> select'); Alchemy.ButtonObserver('#element_<%= @element.id -%> button.button'); <%- if @clipboard.blank? -%> $('#clipboard_button .icon.clipboard').removeClass('full'); <%- end -%> })(jQuery);
Version data entries
4 entries across 4 versions & 1 rubygems