Sha256: 678dff55d400fa4181c995833a763f768bc61c5c6a9c044e632bfe8e58208ed3

Contents?: true

Size: 861 Bytes

Versions: 108

Compression:

Stored size: 861 Bytes

Contents

(function() {
<% if @parent_element && @parent_element.contents.empty? %>
  var $parent = $('#element_<%= @parent_element.id %>');
  Alchemy.ElementEditors.setTitle(
    $parent,
    '<%= sanitize(@parent_element.preview_text.presence || '&nbsp;') %>'
  );
<% end %>

<% if @trashed_element_ids.any? %>

  $('#element_area .ajax-folder').show();
  <% element_ids = @trashed_element_ids.collect do |id|
                     "#element_area [data-element-id=\"#{id}\"]"
                   end.join(", ").html_safe %>
  <% @trashed_element_ids.each do |id| %>
  $('<%= element_ids %>').each(function() { this.id = 'element_' + <%= id %> });
  <% end %>
  Alchemy.growl('<%= Alchemy.t(:successfully_restored_element) -%>');

<% else %>

  Alchemy.growl('<%= Alchemy.t(:successfully_saved_element_position) -%>');

<% end %>

  Alchemy.PreviewWindow.refresh();
})();

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
alchemy_cms-5.3.8 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.7 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.6 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.5 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.4 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.3 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.3.0 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.2.7 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.2.6 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.10 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.10 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-4.6.7 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.2.5 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.9 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.9 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-4.6.6 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.2.4 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.8 app/views/alchemy/admin/elements/order.js.erb