diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-02-06 03:27:09 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-02-06 03:27:09 +0000 |
commit | f09dbcc2a775fb8dc3e821f6f1a39ee5054812b2 (patch) | |
tree | 33e46d75453c02b66ce82c2cb9bf9f3c8ec61b9b /ui | |
parent | f775b00cfa0ad662dd0e5215c9a61a210181a8d1 (diff) | |
download | jquery-ui-f09dbcc2a775fb8dc3e821f6f1a39ee5054812b2.tar.gz jquery-ui-f09dbcc2a775fb8dc3e821f6f1a39ee5054812b2.zip |
Tabs: Fixed selected tab detection.
Fixes #5122 - Bug in ui.tabs.
Thanks th3br41n.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index a9f6b8ea4..e7cfa10a1 100644 --- a/ui/jquery.ui.tabs.js +++ b/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; |