MAPG-120 don't hide the loading when user will be redirected

This commit is contained in:
Bence Pőcze 2020-06-10 20:22:01 +02:00
parent 2725754504
commit ed0e287c94

View File

@ -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;