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.

CommentFileSizeAuthor
#3 jstools.module.patch676 bytesdkruglyak
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nedjo’s picture

Status: Active » Fixed

Applied. I also removed an older approach from activeedit. It will now get the jstools approach.

Anonymous’s picture

Status: Fixed » Closed (fixed)
dkruglyak’s picture

Version: master » 5.x-1.x-dev
Category: feature » bug
Status: Closed (fixed) » Needs work
FileSize
676 bytes

Unfortunately 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