After updating views 7.x-3.14 -> Views load more pager not appending result to existing result.

Issue on Front page

http://payr-new-statesman.pantheonsite.io/

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pardhu_g121 created an issue. See original summary.

mattwith’s picture

andyg5000’s picture

Title: Ajax pager issue » Load mode ajax does not append the new content to view
Version: 7.x-1.5 » 7.x-1.x-dev
Priority: Major » Critical
Status: Active » Needs review
FileSize
1.75 KB

We have the same issue and it appears to be related to the content_query value that is being constructed. This variable is used for .find() calls on the DOM wrapper and the new content object. However, prepending the selector with "> " causes new_content.find(content_query) to be empty.

Here's a patch that only prepends the parent selector (>) only for the DOM queries.

Bumping to critical since this appears to break the primary feature of the module.

This fixes our issue, but definitely needs review by someone more versed in jQuery.

andyg5000’s picture

Status: Needs review » Needs work

Ok, our issue is because we use Zurb Foundation and have put wrappers around our view. I also found #1919896: Does not work correctly with nested views which introduced the issue for us. We need to make sure that the fix for this issue doesn't re-introduce that one.

andyg5000’s picture

Status: Needs work » Closed (duplicate)
Related issues: +#2544376: Won't load when 'theme_debug' variable is set to true

... and our issue was related to #2544376: Won't load when 'theme_debug' variable is set to true, but there seems to be a common thread here. I'm closing this as a duplicate since they're are both caused by the default css selector that is used.