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.
This is a version of the patch in comment #8 of Issue #1316194: Add an option to manually load subsequent pages, instead of automatically scrolling based on window scroll rolled against 7.x-1.x-dev (same as 7.x-1.1 at the time of submission).
Comment | File | Size | Author |
---|---|---|---|
#6 | views_infinite_scroll_manually-load-next-pages_1316194_d7_6.patch | 8.72 KB | corbacho |
#5 | views_infinite_scroll_manually-load-next-pages_1316194_d7.patch | 8.71 KB | jmuzz |
Comments
Comment #1
hugronaphor CreditAttribution: hugronaphor commentedI applied your patch, and it's working great.
Thanks.
Comment #2
maximilianmikus CreditAttribution: maximilianmikus commentedworks fine! Thank you!
Comment #3
kolier CreditAttribution: kolier commentedWorks well +1.
Comment #4
dafederWorking for me as well so far with no issues.
Comment #5
jmuzz CreditAttribution: jmuzz commentedVery nice, but the text shouldn't be required. I want to give the button an image using a background instead of using text in the link. It would be strange for something in a views form to be required, most of the elements are not, including the text for the buttons in the other pagers.
Comment #6
corbacho CreditAttribution: corbacho commentedreturn false; in the click handler, is preventing to have any other event listener for the click. I replaced it with
e.preventDefault();
The change is on top of the patch of jmuzz (#5)
Comment #7
Sam152 CreditAttribution: Sam152 commentedThis has been added to the dev branch.