Sha256: 4812b20bc6ef7a7e184fe9c2a9d64c9831108cc8e9c631755e687176b1414317

Contents?: true

Size: 460 Bytes

Versions: 9

Compression:

Stored size: 460 Bytes

Contents

(function($) {
  
  $('.element_editor[data-element-id="<%= @element.id -%>"]').remove();
  Alchemy.growl('<%= _("Element trashed") -%>');
  $('#element_area').sortable('refresh');
  Alchemy.refreshTrashWindow(<%= @page_id -%>);
  $('#element_trash_button .icon').addClass('full');
  Alchemy.PreviewWindow.refresh();
<%- @element.rtf_contents.each do |content| -%>
  tinymce.get('contents_content_<%= content.id -%>_body').remove();
<%- end -%>
  
})(jQuery);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.0.7 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.6.1 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.5 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.4 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.3.1 app/views/admin/elements/trash.js.erb
alchemy_cms-2.1.beta1 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.3 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.2 app/views/admin/elements/trash.js.erb
alchemy_cms-2.0.1 app/views/admin/elements/trash.js.erb