Index: trunk/extensions/MobileFrontend/javascripts/beta_application.js |
— | — | @@ -26,6 +26,11 @@ |
27 | 27 | btn.style.display = visible ? 'inline-block' : 'none'; |
28 | 28 | return btn; |
29 | 29 | } |
| 30 | + if(!sectionHeadings) { |
| 31 | + sectionHeadings = []; |
| 32 | + } else { |
| 33 | + utilities( document.body ).addClass( 'togglingEnabled' ); |
| 34 | + } |
30 | 35 | for( i = 0; i < sectionHeadings.length; i++ ) { |
31 | 36 | heading = sectionHeadings[i]; |
32 | 37 | heading.insertBefore( createButton( true ), heading.firstChild ); |