Sha256: 2829631d0f1628d20f7e7e7020f94578a625dfad6a35f29ac67c4b28fe17c65e

Contents?: true

Size: 508 Bytes

Versions: 25

Compression:

Stored size: 508 Bytes

Contents

$('#element_<%= @element.id %>').hide(200, function() {
  $(this).remove();
  Alchemy.growl('<%= j _t("Element trashed") %>');
  $('#element_area .sortable_cell').sortable('refresh');
  Alchemy.TrashWindow.refresh();
  $('#element_trash_button .icon').addClass('full');
  Alchemy.PreviewWindow.refresh();
  <% @element.contents.essence_richtexts.each do |content| %>
  tinymce.get('contents_content_<%= content.id %>_body').remove();
  <% end %>
  <%= update_essence_select_elements(@page, @element) -%>
});

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
alchemy_cms-3.0.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/admin/elements/trash.js.erb