aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher McCulloh <cmcculloh@gmail.com>2010-09-07 13:20:41 -0400
committerScott González <scott.gonzalez@gmail.com>2010-09-07 13:20:41 -0400
commit8f22b2b6b3e7ecf0b1f49f81e1fd65e5b2c7a9cb (patch)
tree555957a452768da22fca17c1ee8f8cdb0941b05b
parent0c82f7ec2c9333bfa7dc03750195f6abe0f0e83a (diff)
downloadjquery-ui-8f22b2b6b3e7ecf0b1f49f81e1fd65e5b2c7a9cb.tar.gz
jquery-ui-8f22b2b6b3e7ecf0b1f49f81e1fd65e5b2c7a9cb.zip
Tabs: Prevent opening a tab while panels are being animated. Fixes #4771 - Tabs: Occassionally displays multiple tabs when clicked with rotate control using opacity toggle fx.
-rw-r--r--ui/jquery.ui.tabs.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 2efb062e8..7f7a631ee 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -346,6 +346,7 @@ $.widget( "ui.tabs", {
if ( ( $li.hasClass( "ui-tabs-selected" ) && !o.collapsible) ||
$li.hasClass( "ui-state-disabled" ) ||
$li.hasClass( "ui-state-processing" ) ||
+ self.panels.filter( ":animated" ).length ||
self._trigger( "select", null, self._ui( this, $show[ 0 ] ) ) === false ) {
this.blur();
return false;