r114261 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114260‎ | r114261 | r114262 >
Date:13:33, 20 March 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
allow toggleable sections to have a suffix other than a number
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/toggle.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/toggle.js
@@ -63,7 +63,7 @@
6464 p = p.parentNode;
6565 }
6666 if ( p && ! u( p ).hasClass( 'openSection' ) ) {
67 - section_idx = parseInt( p.id.split( '_' )[1], 10 );
 67+ section_idx = p.id.split( '_' )[1];
6868 wm_toggle_section( section_idx );
6969 }
7070 }

Status & tagging log