r95684 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95683‎ | r95684 | r95685 >
Date:18:55, 29 August 2011
Author:preilly
Status:ok
Tags:
Comment:
fix reveal for hash functionality
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/application.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/application.js
@@ -55,7 +55,7 @@
5656 function wm_reveal_for_hash( hash ) {
5757 var targetel = $( hash );
5858 if( targetel ) {
59 - var parentdiv = targetel.parents( 'div.content_block' );
 59+ var parentdiv = targetel.closest( '.section_heading' ).next( '.content_block' );
6060 if( parentdiv.length > 0 && ! parentdiv.is( ':visible' ) ) {
6161 var section_idx = parseInt( parentdiv.get( 0 ).id.replace( /content_(\d+)/, '$1' ) );
6262 wm_toggle_section( section_idx );

Status & tagging log