Index: trunk/extensions/Translate/resources/ext.translate.special.translate.js |
— | — | @@ -1,9 +1,12 @@ |
2 | 2 | jQuery( function( $ ) { |
| 3 | + "use strict"; |
| 4 | + var mw = mediaWiki; |
| 5 | + |
3 | 6 | // BC for MW < 1.18 |
4 | 7 | if ( !mw.util.wikiScript ) { |
5 | 8 | mw.util.wikiScript = function( str ) { |
6 | 9 | return mw.config.get( 'wgScriptPath' ) + '/' + ( str || 'index' ) + mw.config.get( 'wgScriptExtension' ); |
7 | | - } |
| 10 | + }; |
8 | 11 | } |
9 | 12 | |
10 | 13 | var $submit = $( "input#mw-translate-workflowset" ); |
— | — | @@ -21,7 +24,7 @@ |
22 | 25 | $select.find( "option[selected]" ).attr( "selected", false ); |
23 | 26 | $select.find( "option[value=" + event.data.newstate +"]" ).attr( "selected", "selected" ); |
24 | 27 | } |
25 | | - } |
| 28 | + }; |
26 | 29 | |
27 | 30 | $submit.attr( "disabled", "disable" ); |
28 | 31 | $submit.val( mw.msg( "translate-workflow-set-doing" ) ); |