MediaWiki:Common.js: Difference between revisions

removing code that imports Sysop.js, as it breaks certain code (if not all code) past this point for sysops
(undoing; yep, it is the reason, let's try a couple other things before giving up on this altogether)
(removing code that imports Sysop.js, as it breaks certain code (if not all code) past this point for sysops)
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:
         }
         }
     }
     }
}
}*/ // this code is currently not working for an unknown reason, and it adds little value for us sysops anyway, so it's inactive for now -- [[User_talk:Iritscen]]


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