mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
7852583980
commit
13fa4a9dac
4
ui/jquery.ui.tabs.js
vendored
4
ui/jquery.ui.tabs.js
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user