Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/skins/mw.PlayerControlBuilder.js |
— | — | @@ -1769,6 +1769,13 @@ |
1770 | 1770 | $sourceMenu.append( |
1771 | 1771 | $.getLineItem( source.getShortTitle() , icon, function(){ |
1772 | 1772 | mw.log( 'PlayerControlBuilder::SwitchSourceMenu: ' + source.getSrc() ); |
| 1773 | + // update menu selecting parent li siblings |
| 1774 | + $( this ).parent().siblings().find('span.ui-icon').removeClass( 'ui-icon-bullet').addClass( 'ui-icon-radio-on' ); |
| 1775 | + $( this ).find('span.ui-icon').removeClass( 'ui-icon-radio-on').addClass( 'ui-icon-bullet' ); |
| 1776 | + // update control bar text |
| 1777 | + embedPlayer.$interface.find( '.source-switch' ).text( source.getShortTitle() ); |
| 1778 | + |
| 1779 | + |
1773 | 1780 | // TODO this logic should be in mw.EmbedPlayer |
1774 | 1781 | embedPlayer.mediaElement.setSource( source ); |
1775 | 1782 | if( ! _this.embedPlayer.isStopped() ){ |