Index: trunk/extensions/UploadWizard/js/jquery/plugins/jquery.tipsy.js |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | opacity: 1.0, |
181 | 181 | title: 'title', |
182 | 182 | trigger: 'hover', |
183 | | - type: 'help', |
| 183 | + type: 'help' |
184 | 184 | }; |
185 | 185 | |
186 | 186 | // Overwrite this method to provide options on a per-element basis. |
Index: trunk/extensions/UploadWizard/js/mw.LanguageUpWiz.js |
— | — | @@ -26,8 +26,8 @@ |
27 | 27 | { code: "ace", text: "Ac\u00e8h" }, |
28 | 28 | { code: "af", text: "Afrikaans" }, |
29 | 29 | { code: "ak", text: "Akan" }, |
30 | | - { code: "als", text: "Alemannisch" }, // } XXX someone fix this please |
31 | | - { code: "gsw", text: "Alemannisch" }, // } |
| 30 | + { code: "als", text: "Alemannisch" }, // XXX someone fix this please |
| 31 | + { code: "gsw", text: "Alemannisch" }, // |
32 | 32 | { code: "ang", text: "Anglo-Saxon" }, |
33 | 33 | { code: "an", text: "Aragon\u00e9s" }, |
34 | 34 | { code: "roa-rup", text: "Arm\u00e3neashce" }, |
— | — | @@ -76,8 +76,8 @@ |
77 | 77 | { code: "ext", text: "Estreme\u00f1u" }, |
78 | 78 | { code: "eu", text: "Euskara" }, |
79 | 79 | { code: "ee", text: "E\u028begbe" }, |
80 | | - { code: "hif", text: "Fiji Hindi" }, // } XXX fix this |
81 | | - { code: "hif-latn", text: "Fiji Hindi" }, // } |
| 80 | + { code: "hif", text: "Fiji Hindi" }, // XXX fix this |
| 81 | + { code: "hif-latn", text: "Fiji Hindi" }, // |
82 | 82 | { code: "fr", text: "Fran\u00e7ais" }, |
83 | 83 | { code: "frc", text: "Fran\u00e7ais canadien" }, |
84 | 84 | { code: "fy", text: "Frysk" }, |
— | — | @@ -378,7 +378,7 @@ |
379 | 379 | { code: "ii", text: "\ua187\ua259" }, |
380 | 380 | { code: "ko", text: "\ud55c\uad6d\uc5b4" }, |
381 | 381 | { code: "ko-kp", text: "\ud55c\uad6d\uc5b4 (\uc870\uc120)" }, |
382 | | - { code: "got", text: "\ud800\udf32\ud800\udf3f\ud800\udf44\ud800\udf39\ud800\udf43\ud800\udf3a" }, |
| 382 | + { code: "got", text: "\ud800\udf32\ud800\udf3f\ud800\udf44\ud800\udf39\ud800\udf43\ud800\udf3a" } |
383 | 383 | ], |
384 | 384 | |
385 | 385 | /** |
— | — | @@ -449,7 +449,7 @@ |
450 | 450 | return code; |
451 | 451 | } |
452 | 452 | return mw.LanguageUpWiz.getClosest( code.substring( 0, code.indexOf( '-' )) ); |
453 | | - }, |
| 453 | + } |
454 | 454 | |
455 | 455 | |
456 | 456 | // enhance a simple text input to be an autocompleting language menu |
— | — | @@ -489,4 +489,4 @@ |
490 | 490 | // although other info such as Information boxes was recorded correctly. |
491 | 491 | // This is presumed not to apply to the shiny new world of JS2, where i18n is handled in other ways. |
492 | 492 | |
493 | | -} |
| 493 | +}; |
Index: trunk/extensions/UploadWizard/js/mw.DestinationChecker.js |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | $j( _this.selector )[eventName]( check ); |
49 | 49 | } ); |
50 | 50 | |
51 | | -} |
| 51 | +}; |
52 | 52 | |
53 | 53 | mw.DestinationChecker.prototype = { |
54 | 54 | |
— | — | @@ -73,7 +73,7 @@ |
74 | 74 | * @param something |
75 | 75 | * @return that same thing |
76 | 76 | */ |
77 | | - preprocess: function(x) { return x }, |
| 77 | + preprocess: function(x) { return x; }, |
78 | 78 | |
79 | 79 | /** |
80 | 80 | * fire when the input changes value or keypress |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | function() { checker.checkUnique(); }, |
96 | 96 | checker.delay |
97 | 97 | ); |
98 | | - } |
| 98 | + }; |
99 | 99 | }, |
100 | 100 | |
101 | 101 | /** |
— | — | @@ -165,10 +165,11 @@ |
166 | 166 | // Conflict found, this filename is NOT unique |
167 | 167 | mw.log( " conflict! " ); |
168 | 168 | |
| 169 | + var ntitle; |
169 | 170 | if ( data.query.normalized ) { |
170 | | - var ntitle = data.query.normalized[0].to; |
| 171 | + ntitle = data.query.normalized[0].to; |
171 | 172 | } else { |
172 | | - var ntitle = data.query.pages[ page_id ].title |
| 173 | + ntitle = data.query.pages[ page_id ].title; |
173 | 174 | } |
174 | 175 | |
175 | 176 | var img = data.query.pages[ page_id ].imageinfo[0]; |
Index: trunk/extensions/UploadWizard/js/mw.ApiUploadHandler.js |
— | — | @@ -20,8 +20,8 @@ |
21 | 21 | // can also use Xhr Binary depending on config |
22 | 22 | _this.transport = new mw.IframeTransport( |
23 | 23 | _this.upload.ui.form, |
24 | | - function( fraction ){ _this.upload.setTransportProgress( fraction ) }, |
25 | | - function( result ) { _this.upload.setTransported( result ) } |
| 24 | + function( fraction ){ _this.upload.setTransportProgress( fraction ); }, |
| 25 | + function( result ) { _this.upload.setTransported( result ); } |
26 | 26 | ); |
27 | 27 | |
28 | 28 | }; |
— | — | @@ -72,7 +72,7 @@ |
73 | 73 | addFormInputIfMissing: function( name, value ) { |
74 | 74 | var _this = this; |
75 | 75 | var $jForm = $j( _this.upload.ui.form ); |
76 | | - if ( $jForm.find( "[name='" + name + "']" ).length == 0 ) { |
| 76 | + if ( $jForm.find( "[name='" + name + "']" ).length === 0 ) { |
77 | 77 | $jForm.append( |
78 | 78 | $j( '<input />' ) |
79 | 79 | .attr( { |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | _this.beginTime = ( new Date() ).getTime(); |
95 | 95 | _this.upload.ui.busy(); |
96 | 96 | $j( this.upload.ui.form ).submit(); |
97 | | - }, |
| 97 | + } |
98 | 98 | }; |
99 | 99 | |
100 | 100 | |
Index: trunk/extensions/UploadWizard/js/mw.MockUploadHandler.js |
— | — | @@ -28,9 +28,9 @@ |
29 | 29 | if (1.0 - _this.progress < delta) { |
30 | 30 | _this.upload.setTransported(); |
31 | 31 | } else { |
32 | | - setTimeout( function() { _this.nextState() }, 200 ); |
| 32 | + setTimeout( function() { _this.nextState(); }, 200 ); |
33 | 33 | } |
34 | | - }, |
| 34 | + } |
35 | 35 | |
36 | 36 | }; |
37 | 37 | |
Index: trunk/extensions/UploadWizard/js/mw.IframeTransport.js |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | .attr( { 'src' : 'javascript:false;', |
31 | 31 | 'id' : _this.iframeId, |
32 | 32 | 'name' : _this.iframeId } ) |
33 | | - .load( function() { _this.configureForm() } ) |
| 33 | + .load( function() { _this.configureForm(); } ) |
34 | 34 | .css( 'display', 'none' ); |
35 | 35 | |
36 | 36 | $j( "body" ).append( iframe ); |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | // Get the json string |
92 | 92 | // XXX wait... why are we grepping it out of an HTML doc? We requested jsonfm, why? |
93 | 93 | json = $j( doc.body ).find( 'pre' ).text(); |
94 | | - mw.log( 'iframe:json::' + json ) |
| 94 | + mw.log( 'iframe:json::' + json ); |
95 | 95 | if ( json ) { |
96 | 96 | response = window["eval"]( "( " + json + " )" ); |
97 | 97 | } else { |