Sha256: 047d101d67c8b67ce0ec3b0894a82be56f02e990eeac7bbb7eeb22bdea232218
Contents?: true
Size: 1.55 KB
Versions: 16
Compression:
Stored size: 1.55 KB
Contents
function hideOverlayDestroySpinner() { $('#spinner-overlay').hide(); FANCYBOX_SPINNER.stop(); } function addinfinitescroll() { if ($("div#paging a").length > 0) { $('div.images').infinitescroll({ loading: { msgText: "Loading more photos...", img: "<%= asset_path('lentil/loadingsquares.gif') %>", finishedMsg: "No more photos to load." }, state : { isDone : false }, navSelector : "div#paging", // selector for the paged navigation (it will be hidden) nextSelector : "div#paging a:first", // selector for the NEXT link (to page 2) itemSelector : "div.image-tile", // selector for all items you'll retrieve animate: true, extraScrollPx: 30, appendCallback: true, errorCallback: function() { hideOverlayDestroySpinner() } }, function () { addfancybox(); addimageerrors(); // on callback, if fancybox is open // then close it and reopen at the same spot // this fakes dynamic loading of new images if ($.fancybox.isOpen) { start = $.fancybox.current.index; FancyBoxCloseFunctionState.fancyboxvisible = false; $.fancybox.close(); $(".fancybox").eq(start).trigger('click'); hideOverlayDestroySpinner(); } }); } }
Version data entries
16 entries across 16 versions & 1 rubygems