| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/TimedText/tests/Player_Timed_Text.html |
| — | — | @@ -9,10 +9,10 @@ |
| 10 | 10 | <script type="text/javascript"> |
| 11 | 11 | $( document ).ready(function(){ |
| 12 | 12 | $('#inlineTracksTextArea').text( |
| 13 | | - $j.trim( $('#inlineTracks').html() ) |
| | 13 | + $.trim( $('#inlineTracks').html() ) |
| 14 | 14 | ); |
| 15 | 15 | $('#apiExampleTextArea').text( |
| 16 | | - $j.trim( $('#apiExample').html() ) |
| | 16 | + $.trim( $('#apiExample').html() ) |
| 17 | 17 | ) |
| 18 | 18 | }); |
| 19 | 19 | |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/TimedText/TimedText.loader.js |
| — | — | @@ -14,7 +14,7 @@ |
| 15 | 15 | // includes timedText tracks. |
| 16 | 16 | $( mw ).bind( 'EmbedPlayerUpdateDependencies', function( event, playerElement, classRequest ) { |
| 17 | 17 | if( mw.isTimedTextSupported( playerElement ) ) { |
| 18 | | - classRequest = $j.merge( classRequest, ['mw.TimedText'] ); |
| | 18 | + classRequest = $.merge( classRequest, ['mw.TimedText'] ); |
| 19 | 19 | } |
| 20 | 20 | } ); |
| 21 | 21 | |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/TimedText/resources/mw.TimedText.js |
| — | — | @@ -641,18 +641,18 @@ |
| 642 | 642 | // Show text menu item ( if there are sources) |
| 643 | 643 | if( _this.textSources.length != 0 ) { |
| 644 | 644 | $menu.append( |
| 645 | | - $j.getLineItem( gM( 'mwe-timedtext-choose-text'), 'comment' ).append( |
| | 645 | + $.getLineItem( gM( 'mwe-timedtext-choose-text'), 'comment' ).append( |
| 646 | 646 | _this.getLanguageMenu() |
| 647 | 647 | ), |
| 648 | 648 | // Layout Menu option |
| 649 | | - $j.getLineItem( gM( 'mwe-timedtext-layout' ), 'image' ).append( |
| | 649 | + $.getLineItem( gM( 'mwe-timedtext-layout' ), 'image' ).append( |
| 650 | 650 | _this.getLayoutMenu() |
| 651 | 651 | ) |
| 652 | 652 | ); |
| 653 | 653 | } else { |
| 654 | 654 | // Add a link to request timed text for this clip: |
| 655 | 655 | $menu.append( |
| 656 | | - $j.getLineItem( gM( 'mwe-timedtext-request-subs'), 'comment', function(){ |
| | 656 | + $.getLineItem( gM( 'mwe-timedtext-request-subs'), 'comment', function(){ |
| 657 | 657 | _this.getAddSubRequest(); |
| 658 | 658 | }) |
| 659 | 659 | ); |
| — | — | @@ -786,7 +786,7 @@ |
| 787 | 787 | */ |
| 788 | 788 | getLiAddText: function() { |
| 789 | 789 | var _this = this; |
| 790 | | - return $j.getLineItem( gM( 'mwe-timedtext-upload-timed-text'), 'script', function() { |
| | 790 | + return $.getLineItem( gM( 'mwe-timedtext-upload-timed-text'), 'script', function() { |
| 791 | 791 | _this.showTimedTextEditUI( 'add' ); |
| 792 | 792 | } ); |
| 793 | 793 | }, |
| — | — | @@ -801,14 +801,14 @@ |
| 802 | 802 | var source_icon = ( this.isSourceEnabled( source ) )? 'bullet' : 'radio-on'; |
| 803 | 803 | |
| 804 | 804 | if( source.title ) { |
| 805 | | - return $j.getLineItem( source.title, source_icon, function() { |
| | 805 | + return $.getLineItem( source.title, source_icon, function() { |
| 806 | 806 | _this.selectTextSource( source ); |
| 807 | 807 | }); |
| 808 | 808 | } |
| 809 | 809 | if( source.srclang ) { |
| 810 | 810 | var langKey = source.srclang.toLowerCase(); |
| 811 | 811 | var cat = gM('mwe-timedtext-key-language', langKey, _this.getLanguageName ( langKey ) ); |
| 812 | | - return $j.getLineItem( |
| | 812 | + return $.getLineItem( |
| 813 | 813 | gM('mwe-timedtext-key-language', langKey, _this.getLanguageName ( langKey ) ), |
| 814 | 814 | source_icon, |
| 815 | 815 | function() { |
| — | — | @@ -847,10 +847,10 @@ |
| 848 | 848 | layoutOptions.push( 'off' ); |
| 849 | 849 | |
| 850 | 850 | $ul = $('<ul>'); |
| 851 | | - $j.each( layoutOptions, function( na, layoutMode ) { |
| | 851 | + $.each( layoutOptions, function( na, layoutMode ) { |
| 852 | 852 | var icon = ( _this.config.layout == layoutMode ) ? 'bullet' : 'radio-on'; |
| 853 | 853 | $ul.append( |
| 854 | | - $j.getLineItem( |
| | 854 | + $.getLineItem( |
| 855 | 855 | gM( 'mwe-timedtext-layout-' + layoutMode), |
| 856 | 856 | icon, |
| 857 | 857 | function() { |
| — | — | @@ -992,7 +992,7 @@ |
| 993 | 993 | } |
| 994 | 994 | // Append a cat menu item for each category list |
| 995 | 995 | $langMenu.append( |
| 996 | | - $j.getLineItem( gM( 'mwe-timedtext-textcat-' + catKey.toLowerCase() ) ).append( |
| | 996 | + $.getLineItem( gM( 'mwe-timedtext-textcat-' + catKey.toLowerCase() ) ).append( |
| 997 | 997 | $catChildren |
| 998 | 998 | ) |
| 999 | 999 | ); |
| — | — | @@ -1251,7 +1251,7 @@ |
| 1252 | 1252 | mw.log("Error: cant load crossDomain src:" + this.getSrc() ); |
| 1253 | 1253 | return ; |
| 1254 | 1254 | } |
| 1255 | | - $j.get( this.getSrc(), function( data ) { |
| | 1255 | + $.get( this.getSrc(), function( data ) { |
| 1256 | 1256 | // Parse and load captions: |
| 1257 | 1257 | _this.captions = handler( data ); |
| 1258 | 1258 | mw.log("mw.TimedText:: loaded from srt file: " + _this.captions.length + ' captions'); |
| — | — | @@ -1333,7 +1333,7 @@ |
| 1334 | 1334 | (parseInt(m[6], 10) * 60) + |
| 1335 | 1335 | (parseInt(m[7], 10)) + |
| 1336 | 1336 | endMs, |
| 1337 | | - 'content': $j.trim( m[9] ) |
| | 1337 | + 'content': $.trim( m[9] ) |
| 1338 | 1338 | }); |
| 1339 | 1339 | return true; |
| 1340 | 1340 | } |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/TimedText/resources/mw.TimedTextEdit.js |
| — | — | @@ -225,7 +225,7 @@ |
| 226 | 226 | } |
| 227 | 227 | }), |
| 228 | 228 | // Get a jQuery button object with language menu: |
| 229 | | - $j.button( { |
| | 229 | + $.button( { |
| 230 | 230 | 'style': { 'float' : 'left' }, |
| 231 | 231 | 'class': 'language-select-btn', |
| 232 | 232 | 'text': gM('mwe-timedtext-select-language'), |
| — | — | @@ -302,7 +302,7 @@ |
| 303 | 303 | .css('clear', 'both'), |
| 304 | 304 | $('<br />'), |
| 305 | 305 | $('<br />'), |
| 306 | | - $j.button( { |
| | 306 | + $.button( { |
| 307 | 307 | 'style': { 'float' : 'left' }, |
| 308 | 308 | 'text': gM('mwe-timedtext-upload-text'), |
| 309 | 309 | 'icon': 'disk' |
| — | — | @@ -408,7 +408,7 @@ |
| 409 | 409 | }, |
| 410 | 410 | |
| 411 | 411 | getLangMenuItem: function( langKey , source_icon) { |
| 412 | | - return $j.getLineItem( |
| | 412 | + return $.getLineItem( |
| 413 | 413 | langKey + ' - ' + mw.Language.names[ langKey ], |
| 414 | 414 | source_icon, |
| 415 | 415 | function() { |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/tests/Player_Native_Bindings.html |
| — | — | @@ -184,7 +184,7 @@ |
| 185 | 185 | |
| 186 | 186 | // note we should do a complete event maping: |
| 187 | 187 | // var playerEvents = ['play', 'pause', 'seeking', 'seeked' ]; |
| 188 | | - // $j.each(playerEvents, function( na, eventName ){ |
| | 188 | + // $.each(playerEvents, function( na, eventName ){ |
| 189 | 189 | // $('#myVid').bind(eventName, function(){ |
| 190 | 190 | // $('#playerLog').append( eventName + "\n"); |
| 191 | 191 | }); |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/MediaElement.js |
| — | — | @@ -62,7 +62,7 @@ |
| 63 | 63 | */ |
| 64 | 64 | updateSourceTimes: function( start_npt, end_npt ) { |
| 65 | 65 | var _this = this; |
| 66 | | - $j.each( this.sources, function( inx, mediaSource ) { |
| | 66 | + $.each( this.sources, function( inx, mediaSource ) { |
| 67 | 67 | mediaSource.updateSrcTime( start_npt, end_npt ); |
| 68 | 68 | } ); |
| 69 | 69 | }, |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js |
| — | — | @@ -420,7 +420,7 @@ |
| 421 | 421 | // Make sure the video tag was not generated by our library: |
| 422 | 422 | if( $( playerElement ).hasClass( 'nativeEmbedPlayerPid' ) ){ |
| 423 | 423 | $('#loadingSpinner_' + $( playerElement ).attr('id') ).remove(); |
| 424 | | - mw.log( 'EmbedPlayer::$j.embedPlayer skip embedPlayer gennerated video: ' + playerElement ); |
| | 424 | + mw.log( 'EmbedPlayer::$.embedPlayer skip embedPlayer gennerated video: ' + playerElement ); |
| 425 | 425 | } else { |
| 426 | 426 | addedToPlayerManager = true; |
| 427 | 427 | // Add the player |
| — | — | @@ -1659,7 +1659,7 @@ |
| 1660 | 1660 | if( this.duration ) { |
| 1661 | 1661 | params['data-durationhint'] = parseFloat( this.duration ); |
| 1662 | 1662 | } |
| 1663 | | - iframeUrl += $j.param( params ); |
| | 1663 | + iframeUrl += $.param( params ); |
| 1664 | 1664 | return iframeUrl; |
| 1665 | 1665 | }, |
| 1666 | 1666 | |
| — | — | @@ -1830,7 +1830,7 @@ |
| 1831 | 1831 | // special per browser check for autoTrigger events |
| 1832 | 1832 | // ideally jQuery would not have this inconsistency. |
| 1833 | 1833 | doMethodsAutoTrigger: function(){ |
| 1834 | | - if( $j.browser.mozilla && ! mw.versionIsAtLeast('2.0', $j.browser.version ) ){ |
| | 1834 | + if( $.browser.mozilla && ! mw.versionIsAtLeast('2.0', $.browser.version ) ){ |
| 1835 | 1835 | return true; |
| 1836 | 1836 | } |
| 1837 | 1837 | return false; |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/skins/mw.PlayerControlBuilder.js |
| — | — | @@ -73,7 +73,7 @@ |
| 74 | 74 | if ( mw['PlayerSkin' + skinClass ]) { |
| 75 | 75 | |
| 76 | 76 | // Clone as to not override prototype with the skin config |
| 77 | | - var _this = $j.extend( true, { }, this, mw['PlayerSkin' + skinClass ] ); |
| | 77 | + var _this = $.extend( true, { }, this, mw['PlayerSkin' + skinClass ] ); |
| 78 | 78 | return _this; |
| 79 | 79 | } |
| 80 | 80 | // Return the controlBuilder Object: |
| — | — | @@ -162,7 +162,7 @@ |
| 163 | 163 | |
| 164 | 164 | mw.log( 'PlayerControlsBuilder:: addControlComponents into:' + this.available_width ); |
| 165 | 165 | // Build the supportedComponets list |
| 166 | | - this.supportedComponets = $j.extend( this.supportedComponets, embedPlayer.supports ); |
| | 166 | + this.supportedComponets = $.extend( this.supportedComponets, embedPlayer.supports ); |
| 167 | 167 | |
| 168 | 168 | $( embedPlayer ).trigger( 'addControlBarComponent', this); |
| 169 | 169 | |
| — | — | @@ -596,7 +596,7 @@ |
| 597 | 597 | }); |
| 598 | 598 | |
| 599 | 599 | // Restore absolute layout of parents: |
| 600 | | - $j.each( _this.parentsAbsolute, function( na, element ){ |
| | 600 | + $.each( _this.parentsAbsolute, function( na, element ){ |
| 601 | 601 | $( element ).css( 'position', 'absolute' ); |
| 602 | 602 | } ); |
| 603 | 603 | _this.parentsAbsolute = null; |
| — | — | @@ -714,7 +714,7 @@ |
| 715 | 715 | } |
| 716 | 716 | |
| 717 | 717 | // Do png fix for ie6 |
| 718 | | - if ( $j.browser.msie && $j.browser.version <= 6 ) { |
| | 718 | + if ( $.browser.msie && $.browser.version <= 6 ) { |
| 719 | 719 | $( '#' + embedPlayer.id + ' .play-btn-large' ).pngFix(); |
| 720 | 720 | } |
| 721 | 721 | |
| — | — | @@ -967,7 +967,7 @@ |
| 968 | 968 | .click( function() { |
| 969 | 969 | mw.log("WarningBindinng:: set " + preferenceId + ' to hidewarning ' ); |
| 970 | 970 | // Set up a cookie for 30 days: |
| 971 | | - $j.cookie( preferenceId, 'hidewarning', { expires: 30 } ); |
| | 971 | + $.cookie( preferenceId, 'hidewarning', { expires: 30 } ); |
| 972 | 972 | // Set the current instance |
| 973 | 973 | mw.setConfig( preferenceId, false ); |
| 974 | 974 | $( '#warningOverlay_' + embedPlayer.id ).fadeOut( 'slow' ); |
| — | — | @@ -991,8 +991,8 @@ |
| 992 | 992 | } |
| 993 | 993 | |
| 994 | 994 | // Check the global config before showing the warning |
| 995 | | - if ( mw.getConfig( preferenceId ) === true && $j.cookie( preferenceId ) != 'hidewarning' ){ |
| 996 | | - mw.log("WarningBindinng:: show warning " + mw.getConfig( preferenceId ) + ' cookie: '+ $j.cookie( preferenceId ) + 'typeof:' + typeof $j.cookie( preferenceId )); |
| | 995 | + if ( mw.getConfig( preferenceId ) === true && $.cookie( preferenceId ) != 'hidewarning' ){ |
| | 996 | + mw.log("WarningBindinng:: show warning " + mw.getConfig( preferenceId ) + ' cookie: '+ $.cookie( preferenceId ) + 'typeof:' + typeof $.cookie( preferenceId )); |
| 997 | 997 | $targetWarning.fadeIn( 'slow' ); |
| 998 | 998 | }; |
| 999 | 999 | }, |
| — | — | @@ -1127,7 +1127,7 @@ |
| 1128 | 1128 | optionMenuItems: { |
| 1129 | 1129 | // Player select menu item |
| 1130 | 1130 | 'playerSelect': function( ctrlObj ){ |
| 1131 | | - return $j.getLineItem( |
| | 1131 | + return $.getLineItem( |
| 1132 | 1132 | gM( 'mwe-embedplayer-choose_player' ), |
| 1133 | 1133 | 'gear', |
| 1134 | 1134 | function( ) { |
| — | — | @@ -1140,7 +1140,7 @@ |
| 1141 | 1141 | |
| 1142 | 1142 | // Download the file menu |
| 1143 | 1143 | 'download': function( ctrlObj ) { |
| 1144 | | - return $j.getLineItem( |
| | 1144 | + return $.getLineItem( |
| 1145 | 1145 | gM( 'mwe-embedplayer-download' ), |
| 1146 | 1146 | 'disk', |
| 1147 | 1147 | function( ) { |
| — | — | @@ -1156,7 +1156,7 @@ |
| 1157 | 1157 | |
| 1158 | 1158 | // Share the video menu |
| 1159 | 1159 | 'share': function( ctrlObj ) { |
| 1160 | | - return $j.getLineItem( |
| | 1160 | + return $.getLineItem( |
| 1161 | 1161 | gM( 'mwe-embedplayer-share' ), |
| 1162 | 1162 | 'mail-closed', |
| 1163 | 1163 | function( ) { |
| — | — | @@ -1169,7 +1169,7 @@ |
| 1170 | 1170 | }, |
| 1171 | 1171 | |
| 1172 | 1172 | 'aboutPlayerLibrary' : function( ctrlObj ){ |
| 1173 | | - return $j.getLineItem( |
| | 1173 | + return $.getLineItem( |
| 1174 | 1174 | gM( 'mwe-embedplayer-about-library' ), |
| 1175 | 1175 | 'info', |
| 1176 | 1176 | function( ) { |
| — | — | @@ -1407,7 +1407,7 @@ |
| 1408 | 1408 | .text( gM( 'mwe-embedplayer-choose_player' ) ) |
| 1409 | 1409 | ); |
| 1410 | 1410 | |
| 1411 | | - $j.each( embedPlayer.mediaElement.getPlayableSources(), function( sourceIndex, source ) { |
| | 1411 | + $.each( embedPlayer.mediaElement.getPlayableSources(), function( sourceIndex, source ) { |
| 1412 | 1412 | |
| 1413 | 1413 | var isPlayable = (typeof mw.EmbedTypes.getMediaPlayers().defaultPlayer( source.getMIMEType() ) == 'object' ); |
| 1414 | 1414 | var is_selected = ( source.getSrc() == embedPlayer.mediaElement.selectedSource.getSrc() ); |
| — | — | @@ -1543,7 +1543,7 @@ |
| 1544 | 1544 | |
| 1545 | 1545 | var $mediaList = $( '<ul />' ); |
| 1546 | 1546 | var $textList = $( '<ul />' ); |
| 1547 | | - $j.each( embedPlayer.mediaElement.getSources(), function( index, source ) { |
| | 1547 | + $.each( embedPlayer.mediaElement.getSources(), function( index, source ) { |
| 1548 | 1548 | if( source.getSrc() ) { |
| 1549 | 1549 | mw.log("PlayerControlBuilder::showDownloadWithSources:: Add src: " + source.getTitle() ); |
| 1550 | 1550 | var $dl_line = $( '<li />').append( |
| — | — | @@ -1595,7 +1595,7 @@ |
| 1596 | 1596 | var _this = this; |
| 1597 | 1597 | var embedPlayer = this.embedPlayer; |
| 1598 | 1598 | // for each source with "native playback" |
| 1599 | | - $sourceMenu = $j('<ul />'); |
| | 1599 | + $sourceMenu = $('<ul />'); |
| 1600 | 1600 | |
| 1601 | 1601 | // local function to closure the source variable scope: |
| 1602 | 1602 | function addToSourceMenu( source ){ |
| — | — | @@ -1624,7 +1624,7 @@ |
| 1625 | 1625 | }) |
| 1626 | 1626 | ) |
| 1627 | 1627 | } |
| 1628 | | - $j.each( this.embedPlayer.mediaElement.getPlayableSources(), function( sourceIndex, source ) { |
| | 1628 | + $.each( this.embedPlayer.mediaElement.getPlayableSources(), function( sourceIndex, source ) { |
| 1629 | 1629 | // Output the player select code: |
| 1630 | 1630 | var supportingPlayers = mw.EmbedTypes.getMediaPlayers().getMIMETypePlayers( source.getMIMEType() ); |
| 1631 | 1631 | for ( var i = 0; i < supportingPlayers.length ; i++ ) { |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerJava.js |
| — | — | @@ -65,7 +65,7 @@ |
| 66 | 66 | |
| 67 | 67 | // Wrap it in an iframe to avoid hanging the event thread in FF 2/3 and similar |
| 68 | 68 | // NOTE: This breaks reference to the applet so disabled for now: |
| 69 | | - /*if ( $j.browser.mozilla ) { |
| | 69 | + /*if ( $.browser.mozilla ) { |
| 70 | 70 | var iframe = document.createElement( 'iframe' ); |
| 71 | 71 | iframe.setAttribute( 'width', this.getWidth() ); |
| 72 | 72 | iframe.setAttribute( 'height', this.getHeight() ); |
| — | — | @@ -206,7 +206,7 @@ |
| 207 | 207 | this.playerElement = $( '#' + this.pid ).get( 0 ); |
| 208 | 208 | //this.playerElement = document.applets[ 0 ]; |
| 209 | 209 | // NOTE we are currently not using the iframe embed method: |
| 210 | | - //if ( $j.browser.mozilla ) { |
| | 210 | + //if ( $.browser.mozilla ) { |
| 211 | 211 | // this.playerElement = $('#cframe_' + this.id).contents().find( '#' + this.pid ); |
| 212 | 212 | //} else { |
| 213 | 213 | // this.playerElement = $( '#' + this.pid ).get( 0 ); |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/MediaPlayers.js |
| — | — | @@ -89,7 +89,7 @@ |
| 90 | 90 | var mimePlayers = new Array(); |
| 91 | 91 | var _this = this; |
| 92 | 92 | if ( this.defaultPlayers[mimeType] ) { |
| 93 | | - $j.each( this.defaultPlayers[ mimeType ], function( d, lib ) { |
| | 93 | + $.each( this.defaultPlayers[ mimeType ], function( d, lib ) { |
| 94 | 94 | var library = _this.defaultPlayers[ mimeType ][ d ]; |
| 95 | 95 | for ( var i = 0; i < _this.players.length; i++ ) { |
| 96 | 96 | if ( _this.players[i].library == library && _this.players[i].supportsMIMEType( mimeType ) ) { |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/iframeApi/mw.IFramePlayerApiClient.js |
| — | — | @@ -39,18 +39,18 @@ |
| 40 | 40 | // Allow modules to extend the list of iframeExported bindings |
| 41 | 41 | $( mw ).trigger( 'AddIframePlayerMethods', [ this.exportedMethods ]); |
| 42 | 42 | |
| 43 | | - $j.each( this.exportedMethods, function(na, method){ |
| | 43 | + $.each( this.exportedMethods, function(na, method){ |
| 44 | 44 | _this.playerProxy[ method ] = function(){ |
| 45 | 45 | _this.postMessage( { |
| 46 | 46 | 'method' : method, |
| 47 | | - 'args' : $j.makeArray( arguments ) |
| | 47 | + 'args' : $.makeArray( arguments ) |
| 48 | 48 | } ); |
| 49 | 49 | }; |
| 50 | 50 | }); |
| 51 | 51 | }, |
| 52 | 52 | 'addPlayerReciveApi': function(){ |
| 53 | 53 | var _this = this; |
| 54 | | - $j.receiveMessage( function( event ){ |
| | 54 | + $.receiveMessage( function( event ){ |
| 55 | 55 | _this.hanldeReciveMsg( event ); |
| 56 | 56 | }, this.iframeServer); |
| 57 | 57 | }, |
| — | — | @@ -65,7 +65,7 @@ |
| 66 | 66 | }; |
| 67 | 67 | |
| 68 | 68 | // Bind orientation change to resize player ( if fullscreen ) |
| 69 | | - $j(window).bind( 'orientationchange', function(e){ |
| | 69 | + $(window).bind( 'orientationchange', function(e){ |
| 70 | 70 | if( _this.inFullScreenMode ){ |
| 71 | 71 | doFullscreen(); |
| 72 | 72 | } |
| — | — | @@ -151,7 +151,7 @@ |
| 152 | 152 | /*mw.log( "IFramePlayerApiClient:: postMessage(): " + JSON.stringify( msgObject ) + |
| 153 | 153 | ' iframe: ' + this.iframe + ' cw:' + this.iframe.contentWindow + |
| 154 | 154 | ' src: ' + mw.absoluteUrl( $( this.iframe ).attr('src') ) );*/ |
| 155 | | - $j.postMessage( |
| | 155 | + $.postMessage( |
| 156 | 156 | JSON.stringify( msgObject ), |
| 157 | 157 | mw.absoluteUrl( $( this.iframe ).attr('src') ), |
| 158 | 158 | this.iframe.contentWindow |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/iframeApi/mw.IFramePlayerApiServer.js |
| — | — | @@ -67,7 +67,7 @@ |
| 68 | 68 | 'addIframeListener': function(){ |
| 69 | 69 | var _this = this; |
| 70 | 70 | mw.log('IFramePlayerApiServer::_addIframeListener'); |
| 71 | | - $j.receiveMessage( function( event ) { |
| | 71 | + $.receiveMessage( function( event ) { |
| 72 | 72 | _this.hanldeMsg( event ); |
| 73 | 73 | }, this.getParentUrl() ); |
| 74 | 74 | }, |
| — | — | @@ -96,9 +96,9 @@ |
| 97 | 97 | _this.sendPlayerAttributes(); |
| 98 | 98 | }) |
| 99 | 99 | |
| 100 | | - $j.each( this.exportedBindings, function( inx, bindName ){ |
| | 100 | + $.each( this.exportedBindings, function( inx, bindName ){ |
| 101 | 101 | $( _this.embedPlayer ).bind( bindName, function( event ){ |
| 102 | | - var argSet = $j.makeArray( arguments ); |
| | 102 | + var argSet = $.makeArray( arguments ); |
| 103 | 103 | // remove the event from the arg set |
| 104 | 104 | argSet.shift(); |
| 105 | 105 | // protect against a jQuery event getting past as an arguments: |
| — | — | @@ -143,7 +143,7 @@ |
| 144 | 144 | return ; |
| 145 | 145 | } |
| 146 | 146 | // By default postMessage sends the message to the parent frame: |
| 147 | | - $j.postMessage( |
| | 147 | + $.postMessage( |
| 148 | 148 | messageString, |
| 149 | 149 | this.getParentUrl(), |
| 150 | 150 | window.parent |
| — | — | @@ -172,7 +172,7 @@ |
| 173 | 173 | |
| 174 | 174 | // Call a method: |
| 175 | 175 | if( msgObject.method && this.embedPlayer[ msgObject.method ] ){ |
| 176 | | - this.embedPlayer[ msgObject.method ].apply( this.embedPlayer, $j.makeArray( msgObject.args ) ); |
| | 176 | + this.embedPlayer[ msgObject.method ].apply( this.embedPlayer, $.makeArray( msgObject.args ) ); |
| 177 | 177 | } |
| 178 | 178 | // Update a attribute |
| 179 | 179 | if( typeof msgObject.attrName != 'undefined' && typeof msgObject.attrValue != 'undefined' ){ |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerNative.js |
| — | — | @@ -193,10 +193,10 @@ |
| 194 | 194 | mw.log( " Error: applyMediaElementBindings without player elemnet"); |
| 195 | 195 | return ; |
| 196 | 196 | } |
| 197 | | - $j.each( _this.nativeEvents, function( inx, eventName ){ |
| | 197 | + $.each( _this.nativeEvents, function( inx, eventName ){ |
| 198 | 198 | $( vid ).bind( eventName , function(){ |
| 199 | 199 | if( _this._propagateEvents ){ |
| 200 | | - var argArray = $j.makeArray( arguments ); |
| | 200 | + var argArray = $.makeArray( arguments ); |
| 201 | 201 | // Check if there is local handler: |
| 202 | 202 | if( _this['on' + eventName ] ){ |
| 203 | 203 | _this['on' + eventName ].apply( _this, argArray); |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerKplayer.js |
| — | — | @@ -120,7 +120,7 @@ |
| 121 | 121 | }; |
| 122 | 122 | |
| 123 | 123 | if (this.playerElement && this.playerElement.addJsListener) { |
| 124 | | - $j.each( bindEventMap, function( bindName, localMethod ) { |
| | 124 | + $.each( bindEventMap, function( bindName, localMethod ) { |
| 125 | 125 | _this.bindPlayerFunction(bindName, localMethod); |
| 126 | 126 | } ); |
| 127 | 127 | // Start the monitor |
| Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedTypes.js |
| — | — | @@ -62,7 +62,7 @@ |
| 63 | 63 | |
| 64 | 64 | } |
| 65 | 65 | // Some browsers filter out duplicate mime types, hiding some plugins |
| 66 | | - var uniqueMimesOnly = $j.browser.opera || $j.browser.safari; |
| | 66 | + var uniqueMimesOnly = $.browser.opera || $.browser.safari; |
| 67 | 67 | |
| 68 | 68 | // Opera will switch off javaEnabled in preferences if java can't be |
| 69 | 69 | // found. And it doesn't register an application/x-java-applet mime type like |
| — | — | @@ -72,7 +72,7 @@ |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | // ActiveX plugins |
| 76 | | - if ( $j.browser.msie ) { |
| | 76 | + if ( $.browser.msie ) { |
| 77 | 77 | // check for flash |
| 78 | 78 | if ( this.testActiveX( 'ShockwaveFlash.ShockwaveFlash' ) ) { |
| 79 | 79 | this.mediaPlayers.addPlayer( kplayer ); |