Sha256: 3ac96a12e42baa7b0d6582916d36d9b8beaefe143c757339de0237619aa84a7e

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

// Append new data
$("<%=j render partial: 'spina/admin/images/image', collection: @images %>").appendTo($(".infinite-scroll"));

// Update pagination link
$('.infinite-pagination').html("<%= j link_to_next_page @images, 'Next', params: params.slice(:selected_photo_id).permit(:selected_photo_id), remote: true, data: {target: 'infinite-scroll.link'} %>")

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spina-1.2.0 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.1.4 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.1.3 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.1.2 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.1.1 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.1.0 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.0.3 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.0.2 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.0.1 app/views/spina/admin/media_picker/infinite_scroll.js.erb
spina-1.0.0 app/views/spina/admin/media_picker/infinite_scroll.js.erb