List content selector is :
'div.view-content .item-list > *'
If results of the view contains a themed list, this selector targets them, which is not the correct behaviour.
To be sure that data is added to the views results only, this selector is better :
'div.view-content > .item-list > *'
This bug occurs when a module adds
in views rows.
Rate module does this to display stars.
Rate module does this to display stars.
Here is a patch attached for review.
| Comment | File | Size | Author |
|---|---|---|---|
| views_infinite_scroll_content_selector.patch | 848 bytes | etiennechataignier |
Comments
Comment #1
Remon commentedThanks @echataig for your patch :)
Committed to 7.x-1.x and 6.x-1.x.
http://drupalcode.org/project/views_infinite_scroll.git/commit/d3bd60a
http://drupalcode.org/project/views_infinite_scroll.git/commit/90289b2
Comment #3
vacilando commentedWell, in my case the module does not work on a list view precisely because of the above change.
The HTML structure is:
Since .item-list is not just under .view-content, the selector does not work.
With 'div.view-content .item-list > *' as before it does work...
Ideas?