r107302 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107301‎ | r107302 | r107303 >
Date:23:15, 25 December 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
JS style fixes
Modified paths:
  • /trunk/extensions/Translate/resources/ext.translate.special.translate.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/resources/ext.translate.special.translate.js
@@ -1,9 +1,12 @@
22 jQuery( function( $ ) {
 3+ "use strict";
 4+ var mw = mediaWiki;
 5+
36 // BC for MW < 1.18
47 if ( !mw.util.wikiScript ) {
58 mw.util.wikiScript = function( str ) {
69 return mw.config.get( 'wgScriptPath' ) + '/' + ( str || 'index' ) + mw.config.get( 'wgScriptExtension' );
7 - }
 10+ };
811 }
912
1013 var $submit = $( "input#mw-translate-workflowset" );
@@ -21,7 +24,7 @@
2225 $select.find( "option[selected]" ).attr( "selected", false );
2326 $select.find( "option[value=" + event.data.newstate +"]" ).attr( "selected", "selected" );
2427 }
25 - }
 28+ };
2629
2730 $submit.attr( "disabled", "disable" );
2831 $submit.val( mw.msg( "translate-workflow-set-doing" ) );

Status & tagging log