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.
Overlay is re-applying behaviors in overlay.bindChild() just for the tabs. There is no need for this (there was before the clickHandler, but not any more) and it also causes overlay to break very easily in combination with other scripts using onhashchange handlers (e.g. #546126: Toolbar interferes with anchor links).
I'd say: remove this.
Comment | File | Size | Author |
---|---|---|---|
#5 | overlaybehaviors.patch | 1.14 KB | casey |
overlaybehaviorstwice.patch | 779 bytes | casey | |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedI don't know how to test this. I definitly fixes the issue i had when applying #546126: Toolbar interferes with anchor links.
Comment #4
sun.html() removes the bound events.
You either want to use .clone() to duplicate the tabs, or you want to properly use Drupal.detachBehaviors() along with .removeOnce(), so you can properly invoke Drupal.attachBehaviors() on the duplicated tabs again.
Powered by Dreditor.
Comment #5
casey CreditAttribution: casey commentedOk you're right.
We can't use clone so we need Drupal.attachBehaviors().
Patch removes cruft (overlay doesn't apply behaviors to links any more) and also re-applies behaviors to the also copied shortcut link.
Comment #6
sun.core CreditAttribution: sun.core commentedNot critical. Please read and understand Priority levels of Issues, thanks.
However, this patch looks RTBC if it still applies.
Comment #7
sun.core CreditAttribution: sun.core commented#5: overlaybehaviors.patch queued for re-testing.
Comment #8
aspilicious CreditAttribution: aspilicious commentedApplies!
==> RTBC per #6
Comment #9
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.