* Vector-specific scripts
*/
jQuery( function ( $ ) {
+ $( '#searchInput' ).attr( 'tabindex', $( document ).lastTabIndex() + 1 );
+
$( 'div.vectorMenu' ).each( function () {
var $el = $( this );
$el.find( '> h3 > a' ).parent()
.attr( 'tabindex', '0' )
// For accessibility, show the menu when the h3 is clicked (bug 24298/46486)
.on( 'click keypress', function ( e ) {
- if( e.type === 'click' || e.which === 13 ) {
+ if ( e.type === 'click' || e.which === 13 ) {
$el.toggleClass( 'menuForceShow' );
e.preventDefault();
}
.attr( 'tabindex', '-1' );
} );
+ /**
+ * Sidebar
+ */
+ $( '#mw-panel > .portal:first' ).addClass( 'first' );
+
/**
* Collapsible tabs for Vector
*/