Sha256: 0a4b22677e5ec64bad333a7ae0b9f9edf92555e6e260ef0ce19b332d7fe1e711
Contents?: true
Size: 409 Bytes
Versions: 14
Compression:
Stored size: 409 Bytes
Contents
hidden_input = $("input[name='<%= j params[:page_part_id] %>[attachment_tokens]']") attachment_collection = $("<%= j render partial: 'attachment_collection', locals: {attachments: @attachments} %>") hidden_input.parents('.media_picker').find('.attachment').remove() hidden_input.parents('.media_picker').append(attachment_collection) hidden_input.val("<%= @attachments.map(&:id).join(',') %>") $.hideModal()
Version data entries
14 entries across 14 versions & 1 rubygems