19,670
edits
(commenting out importScript lines that don't work for now anyway; I *could* fold that linked-to code into this document, but a wiki update may happen soon so I'll just wait till this can be used as-is) |
(enabling code that had to wait for the wiki update) |
||
| Line 5: | Line 5: | ||
/* Import more specific scripts if necessary */ | /* Import more specific scripts if necessary */ | ||
if (wgAction == "edit" || wgAction == "submit" || wgPageName == "Special:Upload") //scripts specific to editing pages | |||
{ | { | ||
importScript("MediaWiki:Common.js/edit.js") | importScript("MediaWiki:Common.js/edit.js") | ||
| Line 16: | Line 16: | ||
{ | { | ||
importScript("MediaWiki:Common.js/search.js") | importScript("MediaWiki:Common.js/search.js") | ||
} | } | ||
| Line 24: | Line 23: | ||
* Description: Allows for sysop-specific Javascript at [[MediaWiki:Sysop.js]]. | * Description: Allows for sysop-specific Javascript at [[MediaWiki:Sysop.js]]. | ||
*/ | */ | ||
function sysopFunctions() { | |||
if ( wgUserGroups && !window.disableSysopJS ) { | if ( wgUserGroups && !window.disableSysopJS ) { | ||
for ( var g = 0; g < wgUserGroups.length; ++g ) { | for ( var g = 0; g < wgUserGroups.length; ++g ) { | ||
| Line 33: | Line 32: | ||
} | } | ||
} | } | ||
} | } | ||
// addOnloadHook( sysopFunctions ); // be sure to uncomment this if restoring above code | // addOnloadHook( sysopFunctions ); // be sure to uncomment this if restoring above code | ||
| Line 82: | Line 80: | ||
if (navigator.appVersion.substr(22, 1) == "6") | if (navigator.appVersion.substr(22, 1) == "6") | ||
{ | { | ||
importScript("MediaWiki:Common.js/IE60Fixes.js") | |||
} | } | ||
} | } | ||