MediaWiki:Common.js

(Difference between revisions)
(fix function name)
m (add ending bracket)
Line 8: Line 8:
         hookFunct();  // bug in MSIE script loading
         hookFunct();  // bug in MSIE script loading
     }
     }
 +
}

Revision as of 05:57, 9 June 2009

/* Any JavaScript here will be loaded for all users on every page load. */

function mwAddOnloadHook(hookFunct) {
    // Allows add-on scripts to add onload functions
    if(!doneOnloadHook) {
        onloadFuncts[onloadFuncts.length] = hookFunct;
    } else {
        hookFunct();  // bug in MSIE script loading
    }
}

All videos and text are published under the CC-BY 3.0 U. S. or CC-BY-SA 3.0. copyright licenses.  Details.