Skip to content

Commit

Permalink
Fix for bug #5833.
Browse files Browse the repository at this point in the history
Patch addressing bug #3171 introduced a syntax error and broke collapse-all-tabs functionality.

This patch fixes both problems.
  • Loading branch information
BrazilianJoe committed Jul 16, 2010
1 parent 20c53fc commit d3647e4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/jquery.ui.tabs.js
Expand Up @@ -579,13 +579,9 @@ $.widget("ui.tabs", {

select: function(index) {
index = this._getIndex(index);
else if (index === null) { // usage of null is deprecated, TODO remove in next release
index = -1;
}
if (index == -1 && this.options.collapsible) {
if (isNaN(index) && this.options.collapsible) {
index = this.options.selected;
}

this.anchors.eq(index).trigger(this.options.event + '.tabs');
return this;
},
Expand Down

0 comments on commit d3647e4

Please sign in to comment.