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.
Currently, a collapsible div has a class 'collapsed' when it's initially collapsed, but that class persists when the div is expanded. Likewise, a collapsible div doesn't get the collapsed class when it's collapsed. This patch toggles the collapsed class when collapsing/expanding a collapsible div. This can be very useful for themers.
Comment | File | Size | Author |
---|---|---|---|
collapse_div_toggle_class.patch | 419 bytes | marcvangend |
Comments
Comment #1
Stalski CreditAttribution: Stalski commentedCorrect, forgot about that one. Pushed to git. Thx for the patch.
Comment #2
marcvangendThanks for committing!
Comment #3
DamienMcKennaI don't believe this is what was intended, but the file collapse_div_toggle_class.patch was added to the module's codebase itself, in addition to the patch being applied.
Comment #4
marcvangendI'm always honored when people commit my code :-)
Comment #5
Stalski CreditAttribution: Stalski commented@DamienMcKenna, sorry that was not intended. Sorry for that.
Comment #6
Stalski CreditAttribution: Stalski commentedPatch file removed and it was applied already.