MediaWiki:Gadget-MenuToTabs.js: Difference between revisions

Want an adless experience? Log in or Create an account.
update for vector v35
(remove new input and h3 elements)
(update for vector v35)
Line 2: Line 2:
   if ( mw.config.get( 'skin' ) == 'vector' ) {
   if ( mw.config.get( 'skin' ) == 'vector' ) {
     $( '#p-cactions' )
     $( '#p-cactions' )
       .removeClass( 'vectorMenu' )
       .removeClass( 'vector-menu-dropdown vectorMenu' )
       .addClass( 'vectorTabs' )
       .addClass( 'vector-menu-tabs vectorTabs' )
       .css( 'margin-left', '0.5em' )
       .css( 'margin-left', '0.5em' );
      .find( 'div.menu > ul' )
        .unwrap()
      .find( 'li > a' )
        .wrap( '<span></span>' );
    $( '#p-cactions' ).find( 'input, h3' ).remove();
   }
   }
});
});