1
0
镜像自地址 https://github.com/mail-in-a-box/mailinabox.git 已同步 2026-04-01 21:27:22 +02:00

delay an ajax call to see if this fixes the problem of the loading indicator not going away after showing the user a panel after login

这个提交包含在:
Joshua Tauberer
2014-10-11 16:41:42 +00:00
父节点 f9eceec746
当前提交 2f952a7915

查看文件

@@ -99,8 +99,10 @@ function do_login() {
}
}
// Open the next panel the user wants to go to.
show_panel(!switch_back_to_panel ? 'system_status' : switch_back_to_panel)
// Open the next panel the user wants to go to. Do this after the XHR response
// is over so that we don't start a new XHR request while this one is finishing,
// which confuses the loading indicator.
setTimeout(function() { show_panel(!switch_back_to_panel ? 'system_status' : switch_back_to_panel) }, 300);
}
})
}