Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayerJava.js |
— | — | @@ -73,9 +73,10 @@ |
74 | 74 | var mediaSrc = this.getSrc(); |
75 | 75 | var appletLoc = false; |
76 | 76 | if ( |
77 | | - !mw.isLocalDomain( mediaSrc ) |
78 | | - || |
79 | | - !mw.isLocalDomain( mw.getMwEmbedPath() ) |
| 77 | + !( mw.isLocalDomain( mediaSrc ) |
| 78 | + || |
| 79 | + mw.isLocalDomain( mw.getMwEmbedPath() ) |
| 80 | + ) |
80 | 81 | ){ |
81 | 82 | if ( window.cortadoDomainLocations[ new mw.Uri( mediaSrc ).host ] ) { |
82 | 83 | appletLoc = window.cortadoDomainLocations[ new mw.Uri( mediaSrc ).host ]; |
— | — | @@ -169,13 +170,6 @@ |
170 | 171 | } |
171 | 172 | //mw.log( 'getPlayerElement::' + this.pid ); |
172 | 173 | this.playerElement = $( '#' + this.pid ).get( 0 ); |
173 | | - //this.playerElement = document.applets[ 0 ]; |
174 | | - // NOTE we are currently not using the iframe embed method: |
175 | | - //if ( $.browser.mozilla ) { |
176 | | - // this.playerElement = $('#cframe_' + this.id).contents().find( '#' + this.pid ); |
177 | | - //} else { |
178 | | - // this.playerElement = $( '#' + this.pid ).get( 0 ); |
179 | | - //} |
180 | 174 | return this.playerElement; |
181 | 175 | }, |
182 | 176 | |