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