Sha256: 32e817066c59a4780e120464e718a2d8a1971495c23d889ec323faec26097e4b

Contents?: true

Size: 540 Bytes

Versions: 5

Compression:

Stored size: 540 Bytes

Contents

$('#element_<%= @element.id %>').hide(200, function() {
  $(this).remove();
  Alchemy.growl('<%= escape_javascript(_t("Element trashed")) %>');
  $('#element_area .sortable_cell').sortable('refresh');
  Alchemy.TrashWindow.refresh(<%= @page.id %>);
  $('#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

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-2.8.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/elements/trash.js.erb