From: Christopher McCulloh Date: Tue, 7 Sep 2010 17:20:41 +0000 (-0400) Subject: Tabs: Prevent opening a tab while panels are being animated. Fixes #4771 - Tabs:... X-Git-Tag: 1.8.5~18 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8f22b2b6b3e7ecf0b1f49f81e1fd65e5b2c7a9cb;p=jquery-ui.git 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. --- 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;