dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6e440
)
Fix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE6/IE7 (Thanks...
author
Krinkle
<krinkle@users.mediawiki.org>
Mon, 6 Jun 2011 20:57:28 +0000
(20:57 +0000)
committer
Krinkle
<krinkle@users.mediawiki.org>
Mon, 6 Jun 2011 20:57:28 +0000
(20:57 +0000)
resources/jquery/jquery.tabIndex.js
patch
|
blob
|
history
diff --git
a/resources/jquery/jquery.tabIndex.js
b/resources/jquery/jquery.tabIndex.js
index
ec5371d
..
ab708c7
100644
(file)
--- a/
resources/jquery/jquery.tabIndex.js
+++ b/
resources/jquery/jquery.tabIndex.js
@@
-13,7
+13,10
@@
$.fn.firstTabIndex = function() {
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;
}
} );