MediaWiki:Common.js: Difference between revisions

appears that the divhide template is broken again, retracing my steps from 2008...
(restoring this code, post-troubleshooting)
(appears that the divhide template is broken again, retracing my steps from 2008...)
Line 23: Line 23:
   *  Description: Allows for sysop-specific Javascript at [[MediaWiki:Sysop.js]].
   *  Description: Allows for sysop-specific Javascript at [[MediaWiki:Sysop.js]].
   */
   */
function sysopFunctions() {
/*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 32: Line 32:
         }
         }
     }
     }
}
}*/


// addOnloadHook( sysopFunctions ); // be sure to uncomment this if restoring above code
// addOnloadHook( sysopFunctions ); // be sure to uncomment this if restoring above code