MediaWiki:Common.js
From Wiki
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
// Common scripting for all users, all skins. See also: -*-java-*- // // * http://www.mediawiki.org/wiki/JavaScript - JavaScript in MediaWiki. // * mediawiki/skins/common/*.js - some of which are core scripts loaded by MediaWiki. // // Do not depend on MediaWiki's mw.loader or importScriptURI to load scripts // synchronously. It adds the script elements via the DOM which causes them to load // asynchronously. But this code executes at parse time (e.g. MediaWiki 1.19 serves the // document with Common.js at body end), so it's okay to use document.write to force // synchronous loading. // if( !window.vo ) vo = {}; vo.inc = function() {}; // null version of votorola.g.script.JavaScriptIncluder, which some of the scripts // below use to load their dependencies. We load the dependencies manually here. vo.init = function() { // Main script for the pollwiki with its dependencies pre-loaded synchronously. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - document.write( "<script src='" + "http://reluk.ca/sys/host/obsidian/home/v/votorola/vote-server.jsm" + "' type='text/javascript'></script>" ); document.write( "<script src='" + "http://reluk.ca/sys/host/obsidian/home/v/votorola/web/dom.jsm" + "' type='text/javascript'></script>" ); document.write( "<script src='" + "http://reluk.ca/sys/host/obsidian/home/v/votorola/code/votorola/s/_/share/wiki.jsm" + "' type='text/javascript'></script>" ); document.write( "<script src='" + "http://reluk.ca/sys/host/obsidian/home/v/votorola/web/wiki/pollwiki.js" + "' type='text/javascript'></script>" ); }; vo.init();