diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /resources/jquery/jquery.tabIndex.js | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'resources/jquery/jquery.tabIndex.js')
-rw-r--r-- | resources/jquery/jquery.tabIndex.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/jquery/jquery.tabIndex.js b/resources/jquery/jquery.tabIndex.js index 33e06047..75731d7c 100644 --- a/resources/jquery/jquery.tabIndex.js +++ b/resources/jquery/jquery.tabIndex.js @@ -4,13 +4,13 @@ ( 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).attr( 'tabindex' ), 10 ); + 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. @@ -29,13 +29,13 @@ $.fn.firstTabIndex = function() { /** * 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).attr( 'tabindex' ), 10 ); + var tabIndex = parseInt( $(this).prop( 'tabindex' ), 10 ); if ( tabIndex > 0 && !isNaN( tabIndex ) ) { // Initial value if ( maxTabIndex === null ) { |