Index: branches/MwEmbedStandAloneRL1_17/MwEmbedStandAlone/modules/TimedText/TimedText.loader.js |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | */ |
5 | 5 | // Scope everything in "mw" ( keeps the global namespace clean ) |
6 | 6 | ( function( mw, $ ) { |
7 | | - debugger; |
| 7 | + |
8 | 8 | // Merge in timed text related attributes: |
9 | 9 | mw.mergeConfig( 'EmbedPlayer.SourceAttributes', [ |
10 | 10 | 'srclang', |
Index: branches/MwEmbedStandAloneRL1_17/MwEmbedStandAlone/modules/MwEmbedSupport/mwEmbedSupport.js |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | return '0:00:00'; |
284 | 284 | } |
285 | 285 | |
286 | | - var tm = mw.seconds2Measurements( sec ) |
| 286 | + var tm = mw.seconds2Measurements( sec ); |
287 | 287 | |
288 | 288 | // Round the number of seconds to the required number of significant |
289 | 289 | // digits |
— | — | @@ -295,7 +295,7 @@ |
296 | 296 | tm.seconds = '0' + tm.seconds; |
297 | 297 | } |
298 | 298 | if( tm.hours == 0 ){ |
299 | | - hoursStr = '' |
| 299 | + hoursStr = ''; |
300 | 300 | } else { |
301 | 301 | if ( tm.minutes < 10 ) |
302 | 302 | tm.minutes = '0' + tm.minutes; |
— | — | @@ -303,7 +303,7 @@ |
304 | 304 | hoursStr = tm.hours + ":"; |
305 | 305 | } |
306 | 306 | return hoursStr + tm.minutes + ":" + tm.seconds; |
307 | | - } |
| 307 | + }; |
308 | 308 | |
309 | 309 | /** |
310 | 310 | * Given seconds return array with 'days', 'hours', 'min', 'seconds' |
— | — | @@ -313,12 +313,12 @@ |
314 | 314 | */ |
315 | 315 | mw.seconds2Measurements = function ( sec ){ |
316 | 316 | var tm = {}; |
317 | | - tm.days = Math.floor( sec / ( 3600 * 24 ) ) |
| 317 | + tm.days = Math.floor( sec / ( 3600 * 24 ) ); |
318 | 318 | tm.hours = Math.floor( sec / 3600 ); |
319 | 319 | tm.minutes = Math.floor( ( sec / 60 ) % 60 ); |
320 | 320 | tm.seconds = sec % 60; |
321 | 321 | return tm; |
322 | | - } |
| 322 | + }; |
323 | 323 | |
324 | 324 | /** |
325 | 325 | * Take hh:mm:ss,ms or hh:mm:ss.ms input, return the number of seconds |
— | — | @@ -354,7 +354,7 @@ |
355 | 355 | sec = sec.replace( /,\s?/, '.' ); |
356 | 356 | // Return seconds float |
357 | 357 | return parseInt( hour * 3600 ) + parseInt( min * 60 ) + parseFloat( sec ); |
358 | | - } |
| 358 | + }; |
359 | 359 | |
360 | 360 | /** |
361 | 361 | * addLoaderDialog small helper for displaying a loading dialog |
— | — | @@ -371,7 +371,7 @@ |
372 | 372 | .html() |
373 | 373 | }); |
374 | 374 | return $dialog; |
375 | | - } |
| 375 | + }; |
376 | 376 | |
377 | 377 | |
378 | 378 | |
— | — | @@ -402,7 +402,7 @@ |
403 | 403 | }, options ); |
404 | 404 | |
405 | 405 | if( ! options.title || ! options.content ){ |
406 | | - mw.log("Error: mwEmbed addDialog missing required options ( title, content ) ") |
| 406 | + mw.log("Error: mwEmbed addDialog missing required options ( title, content ) "); |
407 | 407 | return ; |
408 | 408 | } |
409 | 409 | |
— | — | @@ -422,7 +422,7 @@ |
423 | 423 | // Build the uiRequest |
424 | 424 | var uiRequest = [ '$j.ui.dialog' ]; |
425 | 425 | if( options.draggable ){ |
426 | | - uiRequest.push( '$j.ui.draggable' ) |
| 426 | + uiRequest.push( '$j.ui.draggable' ); |
427 | 427 | } |
428 | 428 | if( options.resizable ){ |
429 | 429 | uiRequest.push( '$j.ui.resizable' ); |
— | — | @@ -434,7 +434,7 @@ |
435 | 435 | buttons = { }; |
436 | 436 | options.buttons[ buttonMsg ] = function() { |
437 | 437 | $j( this ).dialog( 'close' ); |
438 | | - } |
| 438 | + }; |
439 | 439 | } |
440 | 440 | |
441 | 441 | // Load the dialog resources |
— | — | @@ -447,7 +447,7 @@ |
448 | 448 | $j( '#mwTempLoaderDialog' ).dialog( options ); |
449 | 449 | } ); |
450 | 450 | return $j( '#mwTempLoaderDialog' ); |
451 | | - } |
| 451 | + }; |
452 | 452 | |
453 | 453 | /** |
454 | 454 | * Close the loader dialog created with addLoaderDialog |
— | — | @@ -505,7 +505,7 @@ |
506 | 506 | } |
507 | 507 | |
508 | 508 | return false; |
509 | | - } |
| 509 | + }; |
510 | 510 | |
511 | 511 | mw.isMobileHTML5 = function(){ |
512 | 512 | // Check for a mobile html5 user agent: |
— | — | @@ -528,7 +528,7 @@ |
529 | 529 | return true; |
530 | 530 | } |
531 | 531 | return false; |
532 | | - } |
| 532 | + }; |
533 | 533 | |
534 | 534 | mw.supportsFlash = function(){ |
535 | 535 | // Check if the client does not have flash and has the video tag |