Sha256: efca0e6a9a1eed5404543f5e121f60824c0d3746ce4ca5189ba40aa1e0bf173f

Contents?: true

Size: 533 Bytes

Versions: 14

Compression:

Stored size: 533 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

Version Path
alchemy_cms-2.3.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.4 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.4.rc2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.4.rc1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.3.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.4.beta2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.3.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.3.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.3.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.3.rc5 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-2.2.rc15 app/views/alchemy/admin/elements/trash.js.erb