Index: branches/MwEmbedStandAlone/modules/TimedText/mw.TimedText.js |
— | — | @@ -609,10 +609,6 @@ |
610 | 610 | }); |
611 | 611 | }, |
612 | 612 | |
613 | | - showMiroSubs: function(){ |
614 | | - |
615 | | - }, |
616 | | - |
617 | 613 | /** |
618 | 614 | * Utility function to assist in menu build out: |
619 | 615 | * Get menu line item (li) html: <li><a> msgKey </a></li> |
— | — | @@ -867,7 +863,7 @@ |
868 | 864 | var $playerTarget = this.embedPlayer.$interface; |
869 | 865 | var $textTarget = $playerTarget.find( '.track_' + source.category + ' span' ); |
870 | 866 | // If we are missing the target add it: |
871 | | - if( $textTarget.length == 0) { |
| 867 | + if( $textTarget.length == 0 ) { |
872 | 868 | this.addItextDiv( source.category ); |
873 | 869 | // Re-grab the textTarget: |
874 | 870 | $textTarget = $playerTarget.find( '.track_' + source.category + ' span' ); |
— | — | @@ -884,8 +880,11 @@ |
885 | 881 | } |
886 | 882 | // Update text ( use "html" instead of "text" so that parsers can swap in html for formating |
887 | 883 | $textTarget.html( text ); |
| 884 | + |
| 885 | + // Update any links to point to |
| 886 | + $textTarget.find( 'a' ).attr( 'target', '_new' ); |
888 | 887 | } |
889 | | - //mw.log( ' len: ' + $textTarget.length + ' ' + $textTarget.html() ); |
| 888 | + // mw.log( ' len: ' + $textTarget.length + ' ' + $textTarget.html() ); |
890 | 889 | // Update the prev text: |
891 | 890 | this.prevText[ source.category ] = text; |
892 | 891 | }, |