![]() |
|
#1
|
|||
|
|||
|
If a user clicks on a main menu header (when it is already expanded), I would like the section to collapse, and stay collapsed, instead of collapsing and expanding again. Is there a solution for this?
Example: If the main menu headers are A, B, C, D. If B is expanded showing sub layers of B0, B1, B2, then when a user clicks on B again, I would like that section to collapse and stay collapsed, no longer showing B0, B1, and B2. |
|
#2
|
|||
|
|||
|
There's a solution that has been posted previously by Thomas Brattli. It certainly works! Thanks so much!
http://www.dhtmlcentral.com/forums/t...rchTerms=slide If the link doesn't work: Look for this line in slidemenu.js (around 157): m = this.menus[num] After that add this line: var stopit=num == this.active[m.lev]?1:0; Then find this line (around 173): if(m.childs.length == 0){this.going = 0; return} Change it to: if(m.childs.length == 0 || stopit){this.going = 0; return} |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|