r60285 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60284‎ | r60285 | r60286 >
Date:23:26, 21 December 2009
Author:dale
Status:deferred
Tags:
Comment:
* fixed bullets for timedText
Modified paths:
  • /branches/js2-work/phase3/js/mwEmbed/modules/TimedText/mw.TimedText.js (modified) (history)

Diff [purge]

Index: branches/js2-work/phase3/js/mwEmbed/modules/TimedText/mw.TimedText.js
@@ -334,8 +334,14 @@
335335 isSourceEnabled: function( source ){
336336 for(var i in this.enabledSources ){
337337 var enabledSource = this.enabledSources[i];
338 - if( source.id == enabledSource.id )
339 - return true;
 338+ if( source.id ){
 339+ if( source.id == enabledSource.id )
 340+ return true;
 341+ }
 342+ if( source.lang ){
 343+ if( source.lang == enabledSource.lang )
 344+ return true;
 345+ }
340346 }
341347 return false;
342348 },

Status & tagging log