MediaWiki:Gadget-MenuToTabs.js: Difference between revisions

From Zelda Dungeon Wiki
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
 
(One intermediate revision by the same user not shown)
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();
   }
   }
});
});

Latest revision as of 20:13, 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();
  }
});