Index: trunk/extensions/MobileFrontend/javascripts/application.js |
— | — | @@ -22,6 +22,10 @@ |
23 | 23 | btn.style.display = visible ? 'inline-block' : 'none'; |
24 | 24 | return btn; |
25 | 25 | } |
| 26 | + if(!sectionHeadings) { |
| 27 | + sectionHeadings = []; |
| 28 | + utilities( document.body ).addClass( 'togglingEnabled' ); |
| 29 | + } |
26 | 30 | for( i = 0; i < sectionHeadings.length; i++ ) { |
27 | 31 | heading = sectionHeadings[i]; |
28 | 32 | heading.insertBefore( createButton( true ), heading.firstChild ); |
Index: trunk/extensions/MobileFrontend/stylesheets/common.css |
— | — | @@ -334,12 +334,12 @@ |
335 | 335 | display: none; |
336 | 336 | } |
337 | 337 | |
338 | | -.jsEnabled button.show { |
| 338 | +.togglingEnabled button.show { |
339 | 339 | display: inline-block; |
340 | 340 | } |
341 | 341 | |
342 | | -.jsEnabled .content_block, |
343 | | -.jsEnabled .section_anchors, |
| 342 | +.togglingEnabled .content_block, |
| 343 | +.togglingEnabled .section_anchors, |
344 | 344 | button.section_heading.hide { |
345 | 345 | display: none; |
346 | 346 | } |
Index: trunk/extensions/MobileFrontend/stylesheets/beta_common.css |
— | — | @@ -342,12 +342,12 @@ |
343 | 343 | display: none; |
344 | 344 | } |
345 | 345 | |
346 | | -.jsEnabled button.show { |
| 346 | +.togglingEnabled button.show { |
347 | 347 | display: inline-block; |
348 | 348 | } |
349 | 349 | |
350 | | -.jsEnabled .content_block, |
351 | | -.jsEnabled .section_anchors, |
| 350 | +.togglingEnabled .content_block, |
| 351 | +.togglingEnabled .section_anchors, |
352 | 352 | button.section_heading.hide { |
353 | 353 | display: none; |
354 | 354 | } |