Posted by E.Z on May 7, 2008 at 10:41pm
Jump to:
| Project: | Collapsiblock |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | gagarine |
| Status: | active |
Issue Summary
Collapsiblock is installed and working properly with most blocks.
However the Language Block is always expanded, regardless of the "Block collapse behavior" setting - ie. even when the Language Switcher is set to "Collapsible, collapsed by default".
Clicking on the block title correctly collapses/expands the Language Switcher block, similar to other blocks. The only problem is to make it collapsed by default.
Comments
#1
I confirm this bug... I will try to fix this soon.
EDIT:
I get it. The JS tests if they are an active menu in the block. If they are the block stay open. With the language switcher they are always an active menu so it stay open all the time.
if (stat == 4 || (cookieData[id] == 0 || (stat == 3 && cookieData[id] == undefined)) && !$(this).find('a.active').size()) {Don't know what is the best way to fix that for the moment.. Perhaps a settings like "open if they are an active menu".