From 13fa4a9dac1ea993b659602f51b2fec28fa2b8f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 30 Aug 2012 09:44:31 -0400 Subject: [PATCH] Tabs: Don't apply a spinner when nested tabs are loading. Fixes #8529 - tabs with in tabs, heading appears as Loading.... --- ui/jquery.ui.tabs.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 524f4178e..7631366d6 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -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; } -- 2.39.5