r73367 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73366‎ | r73367 | r73368 >
Date:09:09, 20 September 2010
Author:dale
Status:deferred
Tags:
Comment:
* use jQuery document ready for page rewrites
Modified paths:
  • /branches/MwEmbedStandAlone/remotes/mediaWiki.js (modified) (history)

Diff [purge]

Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js
@@ -81,9 +81,13 @@
8282
8383
8484 // Use wikibits onLoad hook: ( since we don't have js2 / mw object loaded )
85 -addOnloadHook( function() {
86 - doPageSpecificRewrite();
87 -} );
 85+if( window.jQuery ){
 86+ jQuery( document ).ready( doPageSpecificRewrite );
 87+} else {
 88+ addOnloadHook( function() {
 89+ doPageSpecificRewrite();
 90+ } );
 91+}
8892
8993
9094 /**

Status & tagging log