Every time the autopager load callback runs, attachBehaviors() is run without any context which will re-attach all behaviors to the entire document. This patch should send in just the new content being loaded.

Comments

sarvab’s picture

StatusFileSize
new480 bytes
hydra’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new476 bytes
new476 bytes

Thanks man! Saved my day :) Had the problem in D7.
Tested your patch for review with the actual 6dev branch and it failed, because the affacted line changed. Here the new patch and the D7 patch as well! Please RTBC and commit this guyes, its a small bug, but its very annoying... :)

hydra’s picture

Status: Reviewed & tested by the community » Needs work

grr, first it seemd to work, but now I'm realising, that the script isn't attached to the new loaded content at all :( I'm not sure why this is not working...

Remon’s picture

Thanks guys for the patch!

grr, first it seemd to work, but now I'm realising, that the script isn't attached to the new loaded content at all :( I'm not sure why this is not working...

@Hydra, I tested your patch myself and it works. Maybe your other behaviors have some broader selectors or something?

Remon’s picture

Status: Needs work » Fixed
hydra’s picture

Yeah, it actually was something else, patch was working :) Sorry for the rumor

Remon’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.