MediaWiki:Common.js: Difference between revisions

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
m (making my comments *not* destroy the page width)
(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)
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
/*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")
}
}*/
//The above code can be restored if the wiki is updated to >= v1.13




Line 33: Line 34:
     }
     }
}*/
}*/
 
/*The above code can be restored if the wiki is updated to >= v1.13*/
/*On The Above Code
This attempt to import the Sysop.js code is currently not working for an unknown reason, although the code from the Sysop.js
file can successfully be directly inserted here in place of the importScript command; it is currently my hypothesis that
placing Sysop.js in the wrong namespace at first somehow threw off the server, and that, now that it's in the right place,
it is still (for some reason) invisible to the software. In any case, WP's version of Sysop.js adds little value for us OG
sysops anyway, so I have not inserted its code here. -- [[User_talk:Iritscen]]*/


// addOnloadHook( sysopFunctions ); // be sure to uncomment this if restoring above code
// addOnloadHook( sysopFunctions ); // be sure to uncomment this if restoring above code
Line 87: Line 82:
     if (navigator.appVersion.substr(22, 1) == "6")
     if (navigator.appVersion.substr(22, 1) == "6")
     {
     {
         importScript("MediaWiki:Common.js/IE60Fixes.js")
         //importScript("MediaWiki:Common.js/IE60Fixes.js")
        //The above code can be restored if the wiki is updated to >= v1.13
     }
     }
}
}