Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Castor-designs commented