Index: branches/js2-work/phase3/js/mwEmbed/remotes/mediaWiki.js |
— | — | @@ -4,7 +4,7 @@ |
5 | 5 | */ |
6 | 6 | var urlparts = getRemoteEmbedPath(); |
7 | 7 | var mwEmbedHostPath = urlparts[0]; |
8 | | -var mwRemoteVersion = 'r88'; |
| 8 | +var mwRemoteVersion = 'r89'; |
9 | 9 | var mwUseScriptLoader = true; |
10 | 10 | |
11 | 11 | //Log the mwRemote version ( will determine what version of js we get ) |
— | — | @@ -23,23 +23,19 @@ |
24 | 24 | |
25 | 25 | // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded ) |
26 | 26 | addOnloadHook( function() { |
27 | | - // Only do rewrites if mwEmbed / js2 is "off" |
28 | | - if ( typeof MW_EMBED_VERSION == 'undefined' ) { |
29 | | - doPageSpecificRewrite(); |
30 | | - } |
| 27 | + doPageSpecificRewrite(); |
31 | 28 | } ); |
32 | 29 | |
| 30 | + |
33 | 31 | /** |
34 | 32 | * Page specific rewrites for mediaWiki |
35 | | -*/ |
36 | | -// Deal with multiple doPageSpecificRewrite |
37 | | -if( !ranRewrites){ |
38 | | - var ranRewrites = 'none'; |
39 | | -} |
| 33 | +*/ |
40 | 34 | 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'; |
44 | 40 | |
45 | 41 | // Add media wizard |
46 | 42 | if ( wgAction == 'edit' || wgAction == 'submit' ) { |
— | — | @@ -305,8 +301,8 @@ |
306 | 302 | */ |
307 | 303 | function mwGetReqArgs() { |
308 | 304 | var rurl = ''; |
309 | | - if ( mwReqParam['debug'] ) |
310 | | - rurl += 'debug=true&'; |
| 305 | + //if ( mwReqParam['debug'] ) |
| 306 | + // rurl += 'debug=true&'; |
311 | 307 | |
312 | 308 | if ( mwReqParam['uselang'] ) |
313 | 309 | rurl += 'uselang=' + mwReqParam['uselang'] + '&'; |