Permalink
Browse files

Tabs: Prevent opening a tab while panels are being animated. Fixes #4…

…771 - Tabs: Occassionally displays multiple tabs when clicked with rotate control using opacity toggle fx.
  • Loading branch information...
1 parent 0c82f7e commit 8f22b2b6b3e7ecf0b1f49f81e1fd65e5b2c7a9cb @cmcculloh cmcculloh committed with scottgonzalez Sep 7, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 ui/jquery.ui.tabs.js
View
@@ -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;

0 comments on commit 8f22b2b

Please sign in to comment.