r76725 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76724‎ | r76725 | r76726 >
Date:22:28, 15 November 2010
Author:dale
Status:deferred
Tags:
Comment:
* removed some links for iframe embed
* bumped revision number
Modified paths:
  • /branches/MwEmbedStandAlone/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js
@@ -4,7 +4,7 @@
55 */
66 var urlparts = getRemoteEmbedPath();
77 var mwEmbedHostPath = urlparts[0];
8 -var mwRemoteVersion = 'r172';
 8+var mwRemoteVersion = 'r173';
99 var mwUseScriptLoader = true;
1010
1111 // Log the mwRemote version makes it easy to debug cache issues
@@ -98,7 +98,17 @@
9999 [ /wikimedia\.org$/ , /wikipedia\.org$/ , /wiktionary.org$/ , /wikinews.org$/ , /wikibooks.org$/ , /wikisource.org$/ , /wikiversity.org$/ , /wikiquote.org$/ ]
100100 );
101101
 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+}
102111
 112+
103113 // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded )
104114 if( window.jQuery ){
105115 jQuery( document ).ready( doPageSpecificRewrite );
@@ -270,8 +280,7 @@
271281
272282 // Check for special "embedplayer" yes and set relevent config:
273283 if( mwReqParam['embedplayer'] == 'yes' ){
274 - mwAddCommonStyleSheet();
275 - mw.setConfig( 'EmbedPlayer.EnableFullscreen', false );
 284+ mwAddCommonStyleSheet();
276285 // Only rewrite the main embed player
277286 var playerDiv = document.getElementById( 'file' ).childNodes[0].cloneNode( true );
278287 document.body.innerHTML = '<div id="loadingPlayer" style="height:100%;width:100%"><div class="loadingSpinner" style="position:absolute;left:50%;top:50%"></div></div>';

Status & tagging log