Sha256: 35c025099cf954eb27907b79f735d01d257d21f9bc1a595525822c16aba95bbb

Contents?: true

Size: 547 Bytes

Versions: 9

Compression:

Stored size: 547 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

9 entries across 9 versions & 1 rubygems

Version Path
alchemy_cms-2.5.3.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.2.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.2.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.0.rc3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.5.0.b9 app/views/alchemy/admin/elements/trash.js.erb