aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-04-28 12:04:08 -0400
committerScott González <scott.gonzalez@gmail.com>2011-04-28 12:04:08 -0400
commitd819cdd3a92d9d152a33ce6aecbd5cd9737a3ade (patch)
tree25d202af92bc3421ea767c28e894761df7068572 /ui/jquery.ui.tabs.js
parent0e7769c66958a0f86ffda0209caa4039d96c79b2 (diff)
downloadjquery-ui-d819cdd3a92d9d152a33ce6aecbd5cd9737a3ade.tar.gz
jquery-ui-d819cdd3a92d9d152a33ce6aecbd5cd9737a3ade.zip
Tabs: Fixed disable method and cleaned up tests for enable and disable methods.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rwxr-xr-xui/jquery.ui.tabs.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 5c525b34a..071fcbc67 100755
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -544,6 +544,9 @@ $.widget( "ui.tabs", {
disabled = true;
} else {
index = this._getIndex( index );
+ if ( $.inArray( index, disabled ) !== -1 ) {
+ return;
+ }
if ( $.isArray( disabled ) ) {
disabled = $.merge( [ index ], disabled ).sort();
} else {