Skip to content
Permalink
Browse files

Tabs: Fixed selected tab detection.

Fixes #5122 - Bug in ui.tabs.

Thanks th3br41n.
  • Loading branch information
scottgonzalez committed Feb 6, 2010
1 parent f775b00 commit f09dbcc2a775fb8dc3e821f6f1a39ee5054812b2
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.tabs.js
@@ -169,7 +169,7 @@ $.widget("ui.tabs", {
if (typeof o.selected != 'number' && this.lis.filter('.ui-tabs-selected').length) {
o.selected = this.lis.index(this.lis.filter('.ui-tabs-selected'));
}
o.selected = o.selected || this.lis.length ? 0 : -1;
o.selected = o.selected || (this.lis.length ? 0 : -1);
}
else if (o.selected === null) { // usage of null is deprecated, TODO remove in next release
o.selected = -1;

0 comments on commit f09dbcc

Please sign in to comment.
You can’t perform that action at this time.