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:
Bence Pőcze 2020-06-10 18:23:11 +00:00
commit f11cba4f10

View File

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