From: Alex Monk Date: Sat, 24 May 2014 15:22:01 +0000 (+0100) Subject: vector: Add tabindex back to search box X-Git-Tag: 1.31.0-rc.0~15553 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=ef040e0d6e125e5212dd33ca36d58e51c6ad5182;p=lhc%2Fweb%2Fwiklou.git 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 --- 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()