Sha256: d85631faafaf4222d2bfb52f8d80f766e3b363649f303c98b495487bd9363c48

Contents?: true

Size: 324 Bytes

Versions: 27

Compression:

Stored size: 324 Bytes

Contents

var hidden_input = $("input[name='<%= j params[:page_part_id] %>[page_partable_id]']");
hidden_input.parents('td').find('a .attachment, a .placeholder').remove();
hidden_input.parents('td').find('a').prepend("<div class='attachment'><%= @attachment.name %></div>");
hidden_input.val("<%= @attachment.id %>");
$.hideModal();

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
spina-0.9.0 app/views/spina/admin/attachments/insert.js.erb
spina-0.8.3 app/views/spina/admin/attachments/insert.js.erb
spina-0.8.2 app/views/spina/admin/attachments/insert.js.erb
spina-0.8.1 app/views/spina/admin/attachments/insert.js.erb
spina-0.8.0 app/views/spina/admin/attachments/insert.js.erb
spina-0.7.3 app/views/spina/admin/attachments/insert.js.erb
spina-0.7.2 app/views/spina/admin/attachments/insert.js.erb
spina-0.7.0 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.29 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.28 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.27 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.26 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.25 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.24 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.23 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.22 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.21 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.20 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.19 app/views/spina/admin/attachments/insert.js.erb
spina-0.6.18 app/views/spina/admin/attachments/insert.js.erb