MAPG-120 don't hide the loading when user will be redirected
This commit is contained in:
parent
2725754504
commit
ed0e287c94
@ -11,8 +11,6 @@
|
|||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.responseType = 'json';
|
xhr.responseType = 'json';
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
document.getElementById('loading').style.visibility = 'hidden';
|
|
||||||
|
|
||||||
if (this.response.error) {
|
if (this.response.error) {
|
||||||
var errorText;
|
var errorText;
|
||||||
switch (this.response.error) {
|
switch (this.response.error) {
|
||||||
@ -24,6 +22,8 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.getElementById('loading').style.visibility = 'hidden';
|
||||||
|
|
||||||
var loginFormError = document.getElementById('loginFormError');
|
var loginFormError = document.getElementById('loginFormError');
|
||||||
loginFormError.style.display = 'block';
|
loginFormError.style.display = 'block';
|
||||||
loginFormError.innerHTML = errorText;
|
loginFormError.innerHTML = errorText;
|
||||||
|
Loading…
Reference in New Issue
Block a user