http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89605
Revision: 89605
Author: krinkle
Date: 2011-06-06 20:57:28 +0000 (Mon, 06 Jun 2011)
Log Message:
-----------
Fix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE6/IE7
(Thanks TestSwarm).
Modified Paths:
--------------
trunk/phase3/resources/jquery/jquery.tabIndex.js
Modified: trunk/phase3/resources/jquery/jquery.tabIndex.js
===================================================================
--- trunk/phase3/resources/jquery/jquery.tabIndex.js 2011-06-06 20:52:33 UTC
(rev 89604)
+++ trunk/phase3/resources/jquery/jquery.tabIndex.js 2011-06-06 20:57:28 UTC
(rev 89605)
@@ -13,7 +13,10 @@
var tabIndex = parseInt( $(this).attr( 'tabindex' ), 10 );
if ( i === 0 ) {
minTabIndex = tabIndex;
- } else if ( tabIndex < minTabIndex ) {
+ // 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
+ } else if ( tabIndex > 0 && tabIndex < minTabIndex ) {
minTabIndex = tabIndex;
}
} );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs