]> source.dussan.org Git - jquery-ui.git/commitdiff
Tabs: Don't apply a spinner when nested tabs are loading. Fixes #8529 - tabs with...
authorScott González <scott.gonzalez@gmail.com>
Thu, 30 Aug 2012 13:44:31 +0000 (09:44 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 30 Aug 2012 13:44:57 +0000 (09:44 -0400)
ui/jquery.ui.tabs.js

index 524f4178e2419445bc5f70b34909b0a2abea9b29..7631366d61283a7f76e486ba32252baef94215ea 100644 (file)
@@ -948,7 +948,9 @@ if ( $.uiBackCompat !== false ) {
                        this._super();
                        this._on({
                                tabsbeforeload: function( event, ui ) {
-                                       if ( !this.options.spinner ) {
+                                       // Don't react to nested tabs or tabs that don't use a spinner
+                                       if ( event.target !== this.element[ 0 ] ||
+                                                       !this.options.spinner ) {
                                                return;
                                        }