Index: branches/MwEmbedStandAlone/loader.js |
— | — | @@ -25,6 +25,7 @@ |
26 | 26 | |
27 | 27 | /** |
28 | 28 | * The default set of enabled modules |
| 29 | +* ( Modules can also be enabled via mediaWiki extensions ) |
29 | 30 | * |
30 | 31 | * Each enabledModules array value should be a name |
31 | 32 | * of a folder in mwEmbed/modules |
Index: branches/MwEmbedStandAlone/includes/jsClassLoader.php |
— | — | @@ -211,6 +211,10 @@ |
212 | 212 | $mwEmbedAbsolutePath = ( $wgMwEmbedDirectory == '' )? $IP: $IP .'/' .$wgMwEmbedDirectory; |
213 | 213 | |
214 | 214 | foreach( $moduleSet as $na => $moduleName ){ |
| 215 | + // Skip empty module names |
| 216 | + if(trim( $moduleName ) == '' ){ |
| 217 | + continue; |
| 218 | + } |
215 | 219 | $moduleName = str_replace( array( '../', '\'', '"'), '', trim( $moduleName )); |
216 | 220 | // Check if there is there are module loader files |
217 | 221 | if( is_file( $mwEmbedAbsolutePath . '/modules/' . $moduleName . '/loader.js' )){ |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/kplayerEmbed.js |
— | — | @@ -254,6 +254,7 @@ |
255 | 255 | * function called by flash applet when download bytes changes |
256 | 256 | */ |
257 | 257 | onBytesDownloadedChange: function( data, id){ |
| 258 | + mw.log( 'onBytesDownloadedChange'); |
258 | 259 | this.bytesLoaded = data.newValue; |
259 | 260 | this.bufferedPercent = this.bytesLoaded / this.bytesTotal; |
260 | 261 | |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/skins/ctrlBuilder.js |
— | — | @@ -852,7 +852,7 @@ |
853 | 853 | */ |
854 | 854 | setStatus: function( value ) { |
855 | 855 | // update status: |
856 | | - this.embedPlayer.$interface.find( '.time-disp' ).html( value ); |
| 856 | + this.embedPlayer.$interface.find( '.time-disp' ).text( value ); |
857 | 857 | }, |
858 | 858 | |
859 | 859 | /** |