Index: trunk/extensions/MobileFrontend/javascripts/toggle.js |
— | — | @@ -15,9 +15,9 @@ |
16 | 16 | } |
17 | 17 | |
18 | 18 | function openSectionHandler() { |
19 | | - var sectionNumber = this.id ? this.id.split( '_' )[1] : -1; |
20 | | - if( sectionNumber > -1 ) { |
21 | | - wm_toggle_section( sectionNumber ); |
| 19 | + var sectionName = this.id ? this.id.split( '_' )[1] : -1; |
| 20 | + if( sectionName !== -1 ) { |
| 21 | + wm_toggle_section( sectionName ); |
22 | 22 | } |
23 | 23 | } |
24 | 24 | function createButton( visible ) { |