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.
The core collapse behavior can't be reattached and so breaks AJAX-added content.
Planned approach:
in jstools_footer()
, detect if collapse.js has been added. If so, add a custom collapse.js that:
* adds a 'collapse-processed' class to all already-processed collapsable fieldsets
* registers a new collapse behavior for subsequently added content.
Comment | File | Size | Author |
---|---|---|---|
#3 | jstools.module.patch | 676 bytes | dkruglyak |
Comments
Comment #1
nedjoApplied. I also removed an older approach from activeedit. It will now get the jstools approach.
Comment #2
(not verified) CreditAttribution: commentedComment #3
dkruglyak CreditAttribution: dkruglyak commentedUnfortunately overriding collapse behavior is a problem when collapse.js itself is patched like here: http://drupal.org/node/156221
There should be at least an option to put whatever changes this issues was supposed to address directly into collapse.js. For now to avoid breakage, I made this simple patch against the latest code to turn off this feature.
Finally, the ultimate solution should probably be done together with this issue: http://drupal.org/node/162734