Active
Project:
ZURB Orbit
Version:
7.x-2.0
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
4 Aug 2015 at 01:24 UTC
Updated:
1 Sep 2015 at 18:36 UTC
Jump to comment: Most recent
If Orbit sliders are used together with GD Infinite Scroll, then slides won’t load on subsequent pages (when the infinite scroll effect is happening).
Any ideas on how to resolve?
user gooddesignusa kindly showed me a solution:
scripts.js in the theme folder has to be like this (can also be created if no scripts.js is there):
(function ($, Drupal) {
Drupal.behaviors.STARTER = {
attach: function(context, settings) {
// Get your Yeti started.
}
};
//runs on document ready.
$(function(){
//checks for autopager function and checks if ID of view is on page
if($.autopager && $('#gelaendespiele').length){
//binds ajaxSuccess
$(document).bind('ajaxSuccess.autopager',function(event, xhr, settings){
//rerun function after ajax is done loading
$(this).foundation('reflow');
});
}
});
})(jQuery, Drupal);Then I had to uncomment line 72 of my info file (make sure scripts.js is included)
Finally clear all caches.
Comments
Comment #1
castor-designs commented