r113645 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113644‎ | r113645 | r113646 >
Date:18:18, 12 March 2012
Author:jdlrobson
Status:ok
Tags:
Comment:
update toggle.js to use message function introduced

introduced in r113644
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/toggle.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/toggle.js
@@ -23,7 +23,7 @@
2424 function createButton( visible ) {
2525 var btn, label;
2626 btn = document.createElement( 'button' );
27 - label = document.createTextNode( visible ? showText : hideText );
 27+ label = document.createTextNode( MobileFrontend.message( visible ? 'expand-section' : 'collapse-section' ) );
2828 btn.className = visible ? 'show' : 'hide';
2929 btn.appendChild( label );
3030 btn.style.display = visible ? 'inline-block' : 'none';

Follow-up revisions

RevisionCommit summaryAuthorDate
r114201MFT r113486, r113488, r113512, r113553, r113640, r113642, r113644, r113645, r...awjrichards22:18, 19 March 2012

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113644add locale global for handling languages and message function...jdlrobson18:17, 12 March 2012

Status & tagging log