Sha256: 32ca6cc047a074d0b07de88a91ef7d8c88cd922e964e3b7b47531e790fdf16a6

Contents?: true

Size: 633 Bytes

Versions: 5

Compression:

Stored size: 633 Bytes

Contents

<% if params[:remove] -%>

$(".element-editor[data-element-id='<%= @item.id %>']").remove();

<% if @item.class.to_s == 'Element' -%>

$('#element_area .sortable_cell').sortable('refresh');

<% end -%>

Alchemy.growl('<%= j Alchemy.t("item moved to clipboard", name: @item.class.to_s == "Alchemy::Element" ? @item.display_name_with_preview_text : @item.name) %>');

<% else -%>

Alchemy.growl('<%= j Alchemy.t("item copied to clipboard", name: @item.class.to_s == "Alchemy::Element" ? @item.display_name_with_preview_text : @item.name) %>')

<% end -%>

$('#clipboard_button .icon').removeClass('fa-clipboard').addClass('fa-paste');

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_cms-4.1.2 app/views/alchemy/admin/clipboard/insert.js.erb
alchemy_cms-4.1.1 app/views/alchemy/admin/clipboard/insert.js.erb
alchemy_cms-4.1.0 app/views/alchemy/admin/clipboard/insert.js.erb
alchemy_cms-4.1.0.rc1 app/views/alchemy/admin/clipboard/insert.js.erb
alchemy_cms-4.1.0.beta app/views/alchemy/admin/clipboard/insert.js.erb