mirror of https://github.com/ColorlibHQ/AdminLTE
small patch fix at switchTab in iFrame (#3435)
parent
a66d5d7811
commit
0f694c624d
|
@ -108,12 +108,12 @@ class IFrame {
|
||||||
$loadingScreen.fadeIn()
|
$loadingScreen.fadeIn()
|
||||||
$(`${tabId} iframe`).ready(() => {
|
$(`${tabId} iframe`).ready(() => {
|
||||||
if (typeof this._config.loadingScreen === 'number') {
|
if (typeof this._config.loadingScreen === 'number') {
|
||||||
this.switchTab(`#${navId}`, this._config.loadingScreen)
|
this.switchTab(`#${navId}`)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
$loadingScreen.fadeOut()
|
$loadingScreen.fadeOut()
|
||||||
}, this._config.loadingScreen)
|
}, this._config.loadingScreen)
|
||||||
} else {
|
} else {
|
||||||
this.switchTab(`#${navId}`, this._config.loadingScreen)
|
this.switchTab(`#${navId}`)
|
||||||
$loadingScreen.fadeOut()
|
$loadingScreen.fadeOut()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue