Index: branches/MwEmbedStandAlone/modules/AddMedia/mw.UploadInterface.js |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | } ); |
24 | 24 | |
25 | 25 | /** |
26 | | - * Set the base uploadInterface |
| 26 | + * Set the base uploadInterface |
27 | 27 | */ |
28 | 28 | mw.UploadInterface = { }; |
29 | 29 | |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | * Upload Dialog Interface |
32 | 32 | */ |
33 | 33 | mw.UploadDialogInterface = function( uploadHandler ) { |
34 | | - // Set a reference the uploadHandler if provided |
| 34 | + // Set a reference the uploadHandler if provided |
35 | 35 | if( uploadHandler ) { |
36 | 36 | this.uploadHandler = uploadHandler; |
37 | 37 | } |
— | — | @@ -151,11 +151,11 @@ |
152 | 152 | |
153 | 153 | /** |
154 | 154 | * Update the progress bar to a given completion fraction (between 0 and 1) |
155 | | - * NOTE: This progress bar is used for encoding AND for upload. The dialog title is set elsewhere |
156 | | - * |
157 | | - * @param {Float} progress Progress float |
158 | | - * @param {Number} [loaded] optional Bytes loaded |
159 | | - * @param {Number} [contentLength] optional Length of content |
| 155 | + * NOTE: This progress bar is used for encoding AND for upload. The dialog title is set elsewhere |
| 156 | + * |
| 157 | + * @param {Float} progress Progress float |
| 158 | + * @param {Number} [loaded] optional Bytes loaded |
| 159 | + * @param {Number} [contentLength] optional Length of content |
160 | 160 | */ |
161 | 161 | updateProgress: function( fraction, loaded, contentLength ) { |
162 | 162 | var _this = this; |
— | — | @@ -232,12 +232,12 @@ |
233 | 233 | if ( !buttons ) { |
234 | 234 | // If no buttons are specified, add a close button |
235 | 235 | buttons = {}; |
236 | | - buttons[ gM( 'mwe-ok' ) ] = function() { |
| 236 | + buttons[ gM( 'mwe-ok' ) ] = function() { |
237 | 237 | $j( this ).dialog( 'close' ).remove(); |
238 | 238 | }; |
239 | 239 | } |
240 | 240 | |
241 | | - $j( '#upProgressDialog' ).dialog( 'option', 'title', title_txt ); |
| 241 | + $j( '#upProgressDialog' ).dialog( 'option', 'title', title_txt ); |
242 | 242 | if ( !msg ) { |
243 | 243 | $j( '#upProgressDialog' ).loadingSpinner(); |
244 | 244 | } else { |
— | — | @@ -357,7 +357,7 @@ |
358 | 358 | // If nothing above was able to set the error |
359 | 359 | // set simple unknown-error |
360 | 360 | if ( apiRes.upload && apiRes.upload.error ) { |
361 | | - mw.log( ' apiRes.upload.error: ' + apiRes.upload.error ); |
| 361 | + mw.log( ' apiRes.upload.error: ' + apiRes.upload.error ); |
362 | 362 | _this.setPrompt( |
363 | 363 | gM( 'mwe-uploaderror' ), |
364 | 364 | gM( 'mwe-unknown-error' ) + '<br>', |
— | — | @@ -438,7 +438,7 @@ |
439 | 439 | |
440 | 440 | /** |
441 | 441 | * Send an upload action to the upload handler. |
442 | | - * @param {Object} action |
| 442 | + * @param {Object} action |
443 | 443 | */ |
444 | 444 | sendUploadAction: function( action ) { |
445 | 445 | this.uploadHandler.uploadHandlerAction( action ); |
— | — | @@ -513,7 +513,7 @@ |
514 | 514 | * init |
515 | 515 | * @param {Function} callbackProxy Function that reciveds |
516 | 516 | * all the method calls to be pass along as msgs to the |
517 | | - * other domain via iframe proxy or eventually html5 sendMsg |
| 517 | + * other domain via iframe proxy or eventually html5 sendMsg |
518 | 518 | */ |
519 | 519 | init: function( callbackProxy ){ |
520 | 520 | var _this = this; |
— | — | @@ -522,7 +522,7 @@ |
523 | 523 | |
524 | 524 | // Don't call update progress more than once every 3 seconds |
525 | 525 | // Since it involves loading a cached iframe. Once we support html5 |
526 | | - // cross domain "sendMsg" then we can pass all updates |
| 526 | + // cross domain "sendMsg" then we can pass all updates |
527 | 527 | updateProgress: function( fraction ) { |
528 | 528 | if( ( new Date() ).getTime() - this.lastProgressTime > 3000 ){ |
529 | 529 | this.lastProgressTime = ( new Date() ).getTime() |
— | — | @@ -545,7 +545,7 @@ |
546 | 546 | this.callbackProxy( 'setLoading' ); |
547 | 547 | }, |
548 | 548 | |
549 | | - // Pass on the show api errror: |
| 549 | + // Pass on the show api errror: |
550 | 550 | showApiError: function ( apiRes ){ |
551 | 551 | this.callbackProxy( 'showApiError', apiRes ); |
552 | 552 | }, |