diff options
author | Christopher McCulloh <cmcculloh@gmail.com> | 2010-09-07 13:20:41 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-09-07 13:20:41 -0400 |
commit | 8f22b2b6b3e7ecf0b1f49f81e1fd65e5b2c7a9cb (patch) | |
tree | 555957a452768da22fca17c1ee8f8cdb0941b05b | |
parent | 0c82f7ec2c9333bfa7dc03750195f6abe0f0e83a (diff) | |
download | jquery-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.js | 1 |
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; |