Difference between revisions of "MediaWiki:Group-sysop.js"
(Created page with "→Any JavaScript here will be loaded for sysops only: // Use tabs rather than the Vector dropdown menu // Based on http://en.wikipedia.org/wiki/User:Edokter/MenuToTabs.js ...") |
(ok, it works. hide for now. maybe make a gadget) |
||
| Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for sysops only */ | /* Any JavaScript here will be loaded for sysops only */ | ||
| + | /* | ||
// Use tabs rather than the Vector dropdown menu | // Use tabs rather than the Vector dropdown menu | ||
// Based on http://en.wikipedia.org/wiki/User:Edokter/MenuToTabs.js | // Based on http://en.wikipedia.org/wiki/User:Edokter/MenuToTabs.js | ||
| Line 15: | Line 16: | ||
} | } | ||
}); | }); | ||
| + | */ | ||
Latest revision as of 18:07, 22 November 2012
/* Any JavaScript here will be loaded for sysops only */
/*
// Use tabs rather than the Vector dropdown menu
// Based on http://en.wikipedia.org/wiki/User:Edokter/MenuToTabs.js
$( document ).ready( function() {
if ( mw.config.get( 'skin' ) == 'vector' ) {
$( '#p-cactions' )
.removeClass( 'vectorMenu' )
.addClass( 'vectorTabs' )
.css( 'padding-left', '0' )
.find( 'div.menu > ul' )
.unwrap()
.find( 'li > a' )
.wrap( '<span></span>' );
}
});
*/
