Index: trunk/extensions/MobileFrontend/javascripts/application.js |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | function wm_reveal_for_hash( hash ) { |
57 | 57 | var targetel = $( hash ); |
58 | 58 | if( targetel ) { |
59 | | - var parentdiv = targetel.parents( 'div.content_block' ); |
| 59 | + var parentdiv = targetel.closest( '.section_heading' ).next( '.content_block' ); |
60 | 60 | if( parentdiv.length > 0 && ! parentdiv.is( ':visible' ) ) { |
61 | 61 | var section_idx = parseInt( parentdiv.get( 0 ).id.replace( /content_(\d+)/, '$1' ) ); |
62 | 62 | wm_toggle_section( section_idx ); |