Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jan 2013 at 16:28 UTC
Updated:
6 May 2019 at 14:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerSo it seems to be already token into account that there is a problem with nested views, so i'm wondering why does the current code not work?
Comment #2
James Andres commentedThe previous patch used
jQuery.is()with an object which is not supported until jQuery 1.6. This patch uses object equality comparison, which is valid for DOM elements.Comment #4
James Andres commentedThe correct patch.
Comment #5
zambrey commentedI had similar issue with Ajax-loaded Views #1911582: Pager not working on Ajax-loaded Views.
Patch #4 fixed it. Thanks a lot.
Comment #6
infojunkieRe-assigning to test.
Comment #7
dawehnerPlease use {}, as we don't use such code snippets in drupal.
Comment #8
caiosba commentedPlease check the attached patch, now using {}.
Comment #10
caiosba commented#8: 1877446-3-views-ajax-pager-closest-parent.patch queued for re-testing.
Comment #11
acrollet commentedQuick note that this patch completely broke AJAX on a views block with a summary pager attachment using AJAX.
Comment #12
dawehnerI'm glad that you found this while testing it! You saved a lot of sites just by posting this comment. Thank you!
Comment #13
code-brighton commentedThank you for posting this caiosba I was having this issue with the Load More pager. I had this working fine on a node that had an embedded View. But then (for reasons that I won't bother to explain!) I loaded this node in a nodequeue View and the pager just stopped working with Ajax. This patch got it working. Life saver! Thanks.
I was using Views version 7.x-3.6
Comment #14
James Andres commentedNot sure if this is the right place to put this. Here is a fairly note for note 6.x-3.0 backport of 1877446-3-views-ajax-pager-closest-parent.patch.
Comment #15
jelle_sRerolled patch. Can someone explain how to create a summary pager (said to be broken with this patch in #11)
Comment #16
djdevinThis works for pagers, but I don't think it works for exposed filters. It actually does work for the exposed filters after you change the page via the ajax pager. My guess is because the filter logic is looking at Drupal.settings, which gets changed to the nested view after you load it via ajax.
Comment #17
bpadaria commentedThanks Jelle_S,
Your patch with #15 saved my day
Comment #18
dmsmidt#15 works like a charm for pagers! Thanks you! Haven't tested the case mentioned in #16.
Comment #19
Ghostthinker commentedI can confirm, this works. Thanks
Comment #20
sadashiv commentedPatch at #15 worked for me as well.
Thanks,
Sadashiv.
Comment #21
sergiuteaca commented#15 worked for me as well. Thanks @Jelle_S
Comment #22
darren ohPatch has been tested by me and others. There may be other bugs left, but this fixes the paging bug.
Comment #23
darren ohComment #24
zalak.addweb commentedComment #25
sunnygambino commentedConfirmed!
#15 worked for me as well. Thanks @Jelle_S
Comment #26
elaine.ong commentedHello,
I have the same problem but I am loading the ajax content with below. I applied above patch but it does not seems to work.
What must I do?
Thank you in advance.
Comment #27
darren ohPatch no longer applies. New patch attached.
Comment #29
damienmckennaCommitted. Thanks.