diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-12-27 15:41:37 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-12-31 11:43:28 +0100 |
commit | c1f9b1f7b1b77776192048005dcc66dcf3df2bfb (patch) | |
tree | 2b38796e738dd74cb42ecd9bfd151803108386bc /resources/jquery/jquery.tabIndex.js | |
parent | b88ab0086858470dd1f644e64cb4e4f62bb2be9b (diff) |
Update to MediaWiki 1.24.1
Diffstat (limited to 'resources/jquery/jquery.tabIndex.js')
-rw-r--r-- | resources/jquery/jquery.tabIndex.js | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/resources/jquery/jquery.tabIndex.js b/resources/jquery/jquery.tabIndex.js deleted file mode 100644 index cdae0bad..00000000 --- a/resources/jquery/jquery.tabIndex.js +++ /dev/null @@ -1,52 +0,0 @@ -/** - * jQuery tabIndex - */ -( function ( $ ) { - - /** - * Finds the lowerst tabindex in use within a selection - * - * @return number Lowest tabindex on the page - */ - $.fn.firstTabIndex = function () { - var minTabIndex = null; - $(this).find( '[tabindex]' ).each( function () { - var tabIndex = parseInt( $(this).prop( 'tabindex' ), 10 ); - // In IE6/IE7 the above jQuery selector returns all elements, - // becuase it has a default value for tabIndex in IE6/IE7 of 0 - // (rather than null/undefined). Therefore check "> 0" as well. - // Under IE7 under Windows NT 5.2 is also capable of returning NaN. - if ( tabIndex > 0 && !isNaN( tabIndex ) ) { - // Initial value - if ( minTabIndex === null ) { - minTabIndex = tabIndex; - } else if ( tabIndex < minTabIndex ) { - minTabIndex = tabIndex; - } - } - } ); - return minTabIndex; - }; - - /** - * Finds the highest tabindex in use within a selection - * - * @return number Highest tabindex on the page - */ - $.fn.lastTabIndex = function () { - var maxTabIndex = null; - $(this).find( '[tabindex]' ).each( function () { - var tabIndex = parseInt( $(this).prop( 'tabindex' ), 10 ); - if ( tabIndex > 0 && !isNaN( tabIndex ) ) { - // Initial value - if ( maxTabIndex === null ) { - maxTabIndex = tabIndex; - } else if ( tabIndex > maxTabIndex ) { - maxTabIndex = tabIndex; - } - } - } ); - return maxTabIndex; - }; - -}( jQuery ) ); |