From ef040e0d6e125e5212dd33ca36d58e51c6ad5182 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Sat, 24 May 2014 16:22:01 +0100 Subject: [PATCH] vector: Add tabindex back to search box Another regression, this time in Iaea60834. This brings back the implementation as it was originally before I220057c799bef7e removed it as part of the collapsibleNav module. Bug: 29199 Change-Id: I3f29c3d80e43b9df16b397fff3dc983dc60652a7 --- resources/Resources.php | 5 ++++- skins/vector/vector.js | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/Resources.php b/resources/Resources.php index 5c2ab89e6e..a9208db67a 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -175,7 +175,10 @@ return array( 'vector/vector.js', ), 'position' => 'top', - 'dependencies' => 'jquery.throttle-debounce', + 'dependencies' => array( + 'jquery.throttle-debounce', + 'jquery.tabIndex', + ), 'remoteBasePath' => $GLOBALS['wgStylePath'], 'localBasePath' => $GLOBALS['wgStyleDirectory'], ), diff --git a/skins/vector/vector.js b/skins/vector/vector.js index d8ac3c8144..58ba2af2c6 100644 --- a/skins/vector/vector.js +++ b/skins/vector/vector.js @@ -2,6 +2,8 @@ * Vector-specific scripts */ jQuery( function ( $ ) { + $( '#searchInput' ).attr( 'tabindex', $( document ).lastTabIndex() + 1 ); + $( 'div.vectorMenu' ).each( function () { var $el = $( this ); $el.find( '> h3 > a' ).parent() -- 2.20.1