Sha256: 62056039c2d66c1d527e790734d26c11ff54a01236046a6d9d6ccd7554c70188

Contents?: true

Size: 541 Bytes

Versions: 9

Compression:

Stored size: 541 Bytes

Contents

(function($) {
  
  $('#<%= content_dom_id(@content) -%>').replaceWith('<%= escape_javascript(
    render(
      :partial => "alchemy/essences/essence_picture_editor",
      :locals => {:content => @content, :options => params[:options]}
    )
  ) -%>');
<%- if @content.siblings.essence_pictures.count > 1 -%>
  Alchemy.SortableContents('#<%= @content.element.id -%>_contents', '<%= form_authenticity_token -%>');
<%- end -%>
  Alchemy.closeCurrentWindow();
  Alchemy.setElementDirty('#element_<%= @content.element.id -%>');
  
})(jQuery);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.1.2 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.1 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.rc6 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.rc5 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.rc4 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.rc3 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.rc2 app/views/alchemy/admin/essence_pictures/assign.js.erb
alchemy_cms-2.1.beta6 app/views/alchemy/admin/essence_pictures/assign.js.erb