r114266 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114265‎ | r114266 | r114267 >
Date:14:02, 20 March 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
limit checkHash to links with a content_block
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/toggle.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/toggle.js
@@ -48,7 +48,7 @@
4949 }
5050 }
5151 checkHash();
52 - for ( a = document.getElementsByTagName( 'a' ), i = 0; i < a.length; i++ ) {
 52+ for ( a = u( '.content_block a' ) || [], i = 0; i < a.length; i++ ) {
5353 u( a[i] ).bind( 'click', checkHash );
5454 }
5555 }

Status & tagging log