r94154 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94153‎ | r94154 | r94155 >
Date:13:29, 10 August 2011
Author:catrope
Status:ok
Tags:
Comment:
jQueryMsg: Use $ and mw.config.get() as appropriate
Modified paths:
  • /trunk/extensions/jQueryMsg/jQueryMsg.js (modified) (history)

Diff [purge]

Index: trunk/extensions/jQueryMsg/jQueryMsg.js
@@ -1,8 +1,8 @@
22
3 -jQuery( document ).ready( function() {
 3+jQuery( document ).ready( function( $ ) {
44 // add "magic" to Language template parser for keywords
5 - var options = { magic: { 'SITENAME' : wgSiteName } };
 5+ var options = { magic: { 'SITENAME' : mw.config.get( 'wgSiteName' ) } };
66
77 window.gM = mediaWiki.language.getMessageFunction( options );
8 - $j.fn.msg = mediaWiki.language.getJqueryMessagePlugin( options );
 8+ $.fn.msg = mediaWiki.language.getJqueryMessagePlugin( options );
99 } );

Status & tagging log