r61986 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61985‎ | r61986 | r61987 >
Date:19:14, 4 February 2010
Author:dale
Status:deferred
Tags:
Comment:
* some fixes for google chrome mw remote
Modified paths:
  • /branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js
@@ -4,7 +4,7 @@
55 */
66 var urlparts = getRemoteEmbedPath();
77 var mwEmbedHostPath = urlparts[0];
8 -var mwRemoteVersion = 'r88';
 8+var mwRemoteVersion = 'r89';
99 var mwUseScriptLoader = true;
1010
1111 //Log the mwRemote version ( will determine what version of js we get )
@@ -23,23 +23,19 @@
2424
2525 // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded )
2626 addOnloadHook( function() {
27 - // Only do rewrites if mwEmbed / js2 is "off"
28 - if ( typeof MW_EMBED_VERSION == 'undefined' ) {
29 - doPageSpecificRewrite();
30 - }
 27+ doPageSpecificRewrite();
3128 } );
3229
 30+
3331 /**
3432 * Page specific rewrites for mediaWiki
35 -*/
36 -// Deal with multiple doPageSpecificRewrite
37 -if( !ranRewrites){
38 - var ranRewrites = 'none';
39 -}
 33+*/
4034 function doPageSpecificRewrite() {
41 - if( ranRewrites != 'none')
42 - return ;
43 - ranRewrites = 'done';
 35+ // Deal with multiple doPageSpecificRewrite
 36+ if( typeof window.ranRewrites != 'undefined'){
 37+ return ;
 38+ }
 39+ window.ranRewrites = 'done';
4440
4541 // Add media wizard
4642 if ( wgAction == 'edit' || wgAction == 'submit' ) {
@@ -305,8 +301,8 @@
306302 */
307303 function mwGetReqArgs() {
308304 var rurl = '';
309 - if ( mwReqParam['debug'] )
310 - rurl += 'debug=true&';
 305+ //if ( mwReqParam['debug'] )
 306+ // rurl += 'debug=true&';
311307
312308 if ( mwReqParam['uselang'] )
313309 rurl += 'uselang=' + mwReqParam['uselang'] + '&';

Status & tagging log