Sha256: a873484063c30bc7cd70647184a49de3375b412bca54a876ba35e6e83a2d9073

Contents?: true

Size: 548 Bytes

Versions: 6

Compression:

Stored size: 548 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 %>
  <%=raw update_elements_with_essence_selects(@page, @element) %>
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
alchemy_cms-2.6.3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.6.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.6.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.6.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.6.0.rc5 app/views/alchemy/admin/elements/trash.js.erb