Sha256: fa8ed2855bed5270e7d179a25975efba726ca2efa9c0dfed7a47e019e7cd9377

Contents?: true

Size: 546 Bytes

Versions: 5

Compression:

Stored size: 546 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-2.4.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.0.b5 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.0.b2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.4.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.4.rc4 app/views/alchemy/admin/elements/trash.js.erb