The module was working until I just updated 6.x, and now the View seems to revert to the regular pager. I'm getting this error on the line that calls console.log(jqueryLoaded).

Comments

Remon’s picture

Status: Active » Closed (cannot reproduce)

There is calls such as console.log in any version of views_infinite_scroll, might be an issue with other js code.

mattcasey’s picture

OK, what I found different is 1.1 uses the Child Selector ">". This requires the child be the first-level descendant, but in my View there is a div with class "inner content" in-between the view_selector and pager_selector causing it to not be triggered.

This updated version, starting at Line 21 in views_infinite_scroll.js, just removes the >'s and works for me:

          var view_selector    = 'div.view-id-' + settings.view_name + '.view-display-id-' + settings.display;
          var content_selector = view_selector + ' ' + settings.content_selector;
          var items_selector   = content_selector + ' ' + settings.items_selector;
          var pager_selector   = view_selector + ' div.item-list ' + settings.pager_selector;
          var next_selector    = view_selector + ' ' + settings.next_selector;
          var img_location     = view_selector + ' div.view-content';
          var img_path         = settings.img_path;
          var img              = '<div id="views_infinite_scroll-ajax-loader"><img src="' + img_path + '" alt="loading..."/></div>';
mattcasey’s picture

Patch of #2. Also I still get the debug error but Infinite Scroller now works.