diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-04-28 12:04:08 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-04-28 12:04:08 -0400 |
commit | d819cdd3a92d9d152a33ce6aecbd5cd9737a3ade (patch) | |
tree | 25d202af92bc3421ea767c28e894761df7068572 /ui/jquery.ui.tabs.js | |
parent | 0e7769c66958a0f86ffda0209caa4039d96c79b2 (diff) | |
download | jquery-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-x | ui/jquery.ui.tabs.js | 3 |
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 { |