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-3.6.7 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.2.0.rc1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.2.0.b1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.3 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.0 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.0.rc1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.0.beta2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.1.0.beta1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-3.6.6 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-4.6.2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.0 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.0.rc2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.0.rc1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.0.beta2 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-5.0.0.beta1 app/views/alchemy/admin/elements/order.js.erb
alchemy_cms-4.6.1 app/views/alchemy/admin/elements/order.js.erb