From d819cdd3a92d9d152a33ce6aecbd5cd9737a3ade Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 28 Apr 2011 12:04:08 -0400 Subject: Tabs: Fixed disable method and cleaned up tests for enable and disable methods. --- ui/jquery.ui.tabs.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui') 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 { -- cgit v1.2.3