Skip to content
Permalink
Browse files

Tabs: Fixed select method handling for index of -1.

  • Loading branch information...
scottgonzalez committed Jul 17, 2010
1 parent 7e03d4e commit 5435c50765e89f5cfb1c164dda6642c2149dc4db
Showing with 6 additions and 2 deletions.
  1. +6 −2 ui/jquery.ui.tabs.js
@@ -575,8 +575,12 @@ $.widget("ui.tabs", {

select: function(index) {
index = this._getIndex(index);
if (index == -1 && this.options.collapsible) {
index = this.options.selected;
if (index == -1) {
if (this.options.collapsible && this.options.selected != -1) {
index = this.options.selected;
} else {
return this;
}
}
this.anchors.eq(index).trigger(this.options.event + '.tabs');
return this;

0 comments on commit 5435c50

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