Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/skins/mw.PlayerControlBuilder.js |
— | — | @@ -1697,14 +1697,14 @@ |
1698 | 1698 | * Shows the download interface with sources loaded |
1699 | 1699 | * @param {Object} $target jQuery target to output to |
1700 | 1700 | */ |
1701 | | - showDownloadWithSources : function( $target ) { |
| 1701 | + showDownloadWithSources : function( $targetContainer ) { |
1702 | 1702 | var _this = this; |
1703 | | - mw.log( 'showDownloadWithSources::' + $target.length ); |
| 1703 | + mw.log( 'showDownloadWithSources::' + $targetContainer.length ); |
1704 | 1704 | var embedPlayer = this.embedPlayer; |
1705 | 1705 | // Empty the target: |
1706 | | - $target.empty(); |
1707 | | - $target.append( $('<div />') ); |
1708 | | - $target = $target.find('div'); |
| 1706 | + $targetContainer.empty(); |
| 1707 | + $targetContainer.append( $('<div />') ); |
| 1708 | + $target = $targetContainer.find('div'); |
1709 | 1709 | |
1710 | 1710 | var $mediaList = $( '<ul />' ); |
1711 | 1711 | var $textList = $( '<ul />' ); |