Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | */ |
6 | 6 | var urlparts = getRemoteEmbedPath(); |
7 | 7 | var mwEmbedHostPath = urlparts[0]; |
8 | | -var mwRemoteVersion = 'r172'; |
| 8 | +var mwRemoteVersion = 'r173'; |
9 | 9 | var mwUseScriptLoader = true; |
10 | 10 | |
11 | 11 | // Log the mwRemote version makes it easy to debug cache issues |
— | — | @@ -98,7 +98,17 @@ |
99 | 99 | [ /wikimedia\.org$/ , /wikipedia\.org$/ , /wiktionary.org$/ , /wikinews.org$/ , /wikibooks.org$/ , /wikisource.org$/ , /wikiversity.org$/ , /wikiquote.org$/ ] |
100 | 100 | ); |
101 | 101 | |
| 102 | +// Special embedplayer handler ( iframe ) |
| 103 | +if( mwReqParam['embedplayer'] == 'yes' ){ |
| 104 | + // No fullscreen in iframe for now: |
| 105 | + mw.setConfig( 'EmbedPlayer.EnableFullscreen', false ); |
| 106 | + // No subtitle editor ( cross domain issues ) |
| 107 | + mw.setConfig( 'MiroSubs.EnableUniversalSubsEditor', false ); |
| 108 | + // No subtile upload either ( for now ) |
| 109 | + mw.setConfig( 'TimedText.showAddTextLink', false ); |
| 110 | +} |
102 | 111 | |
| 112 | + |
103 | 113 | // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded ) |
104 | 114 | if( window.jQuery ){ |
105 | 115 | jQuery( document ).ready( doPageSpecificRewrite ); |
— | — | @@ -270,8 +280,7 @@ |
271 | 281 | |
272 | 282 | // Check for special "embedplayer" yes and set relevent config: |
273 | 283 | if( mwReqParam['embedplayer'] == 'yes' ){ |
274 | | - mwAddCommonStyleSheet(); |
275 | | - mw.setConfig( 'EmbedPlayer.EnableFullscreen', false ); |
| 284 | + mwAddCommonStyleSheet(); |
276 | 285 | // Only rewrite the main embed player |
277 | 286 | var playerDiv = document.getElementById( 'file' ).childNodes[0].cloneNode( true ); |
278 | 287 | document.body.innerHTML = '<div id="loadingPlayer" style="height:100%;width:100%"><div class="loadingSpinner" style="position:absolute;left:50%;top:50%"></div></div>'; |