]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Prevent opening a tab while panels are being animated. Fixes #4771 - Tabs:...
authorChristopher McCulloh <cmcculloh@gmail.com>
Tue, 7 Sep 2010 17:20:41 +0000 (13:20 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 7 Sep 2010 17:20:41 +0000 (13:20 -0400)
ui/jquery.ui.tabs.js

index 2efb062e8a6d127b070e2456e5490efd8f7f7c8c..7f7a631ee49cb05d791632a24bf3bbb262755a11 100644 (file)
@@ -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;