MediaWiki:Common.js: Difference between revisions - Wikimedia Commons
Article Images
Content deleted Content added
Line 19: //Puts occuring JS error on the page if the user is a sysop //Errors catched with try catch are not affected if ($.inArray('sysop', wgUserGroups) > -1 ) { window.onerror = function (error, url, line) { var msg = '<p><b>Error: </b>'; Line 577: * Maintainer: ? */ if ( $.inArray( 'sysop', wgUserGroups ) > -1 ) { importStylesheet('MediaWiki:Admin.css'); } else if ( $.inArray( 'filemover', wgUserGroups ) > -1 ) { importStylesheet('MediaWiki:Filemover.css'); } |