Tabs: Don't apply a spinner when nested tabs are loading. Fixes #8529 - tabs with in tabs, heading appears as Loading....

This commit is contained in:
Scott González 2012-08-30 09:44:31 -04:00
parent 7852583980
commit 13fa4a9dac

View File

@ -948,7 +948,9 @@ if ( $.uiBackCompat !== false ) {
this._super(); this._super();
this._on({ this._on({
tabsbeforeload: function( event, ui ) { 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; return;
} }