MediaWiki:Gadget-MenuToTabs.js: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
(remove checkbox that was blocking click targets) |
mNo edit summary |
||
Line 4: | Line 4: | ||
.removeClass( 'vector-menu-dropdown vectorMenu' ) | .removeClass( 'vector-menu-dropdown vectorMenu' ) | ||
.addClass( 'vector-menu-tabs vectorTabs' ) | .addClass( 'vector-menu-tabs vectorTabs' ) | ||
.css( 'margin-left', '0.5em' ) | .css( 'margin-left', '0.5em' ) | ||
.find( 'vector-menu-checkbox' ) | .find( 'vector-menu-checkbox' ) | ||
.remove() | .remove(); | ||
} | } | ||
}); | }); |
Revision as of 20:09, April 18, 2021
$( function() { if ( mw.config.get( 'skin' ) == 'vector' ) { $( '#p-cactions' ) .removeClass( 'vector-menu-dropdown vectorMenu' ) .addClass( 'vector-menu-tabs vectorTabs' ) .css( 'margin-left', '0.5em' ) .find( 'vector-menu-checkbox' ) .remove(); } });