Sha256: 05868e9d9e55a5ac5351b35cef7ef87a76344a9b92928accf41d2323d98ba89e

Contents?: true

Size: 528 Bytes

Versions: 6

Compression:

Stored size: 528 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('tinymce_<%= content.id %>').remove();
  <% end %>
  <%= update_essence_select_elements(@page, @element) -%>
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-2.9.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/elements/trash.js.erb