Sha256: e3a2ba66fe7761598036086238dcf37d5cc586e5ffb3c39394d7fdcd58d408c2
Contents?: true
Size: 1.05 KB
Versions: 11
Compression:
Stored size: 1.05 KB
Contents
(function($) { <%- if @page.has_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_<%= @element.id -%>').trigger('Alchemy.SelectElementEditor'); Alchemy.ElementDirtyObserver('#element_<%= @element.id -%>'); Alchemy.SelectBox('#element_<%= @element.id -%> select'); Alchemy.ButtonObserver('#element_<%= @element.id -%> button.button'); })(jQuery);
Version data entries
11 entries across 11 versions & 1 rubygems