Sha256: b6668a840da66155ebe8cb3173c8eb64ff2f886f1121fba31749190423440a5c

Contents?: true

Size: 523 Bytes

Versions: 73

Compression:

Stored size: 523 Bytes

Contents

$('#element_<%= @element.id %>').hide(200, function() {
  $(this).remove();
  Alchemy.growl('<%= j Alchemy.t("Element trashed") %>');
  $('#element_area .sortable-elements').sortable('refresh');
  Alchemy.TrashWindow.refresh();
  $('#element_trash_button .icon').addClass('full');
  Alchemy.PreviewWindow.refresh();
  <% @element.richtext_contents_ids.each do |id| %>
  tinymce.get('tinymce_<%= id %>').remove();
  <% end %>
  <% if @element.fixed? %>
  Alchemy.FixedElements.removeTab(<%= @element.id %>);
  <% end %>
});

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
alchemy_cms-4.4.3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.4.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.4.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.4.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.3.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.2.4 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.3.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.2.3 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.3.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.2.2 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.2.1 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.2.0 app/views/alchemy/admin/elements/trash.js.erb
alchemy_cms-4.2.0.rc1 app/views/alchemy/admin/elements/trash.js.erb