Fix freeze effect after typing a wrong password in login/register

This commit is contained in:
yflory
2020-02-11 14:03:06 +01:00
parent bd163e65f3
commit 035707bd38
4 changed files with 7 additions and 3 deletions

View File

@@ -3,7 +3,6 @@
define([], function () {
var loadingStyle = (function(){/*
#cp-loading {
transition: opacity 0.75s, visibility 0s 0.75s;
visibility: visible;
position: fixed;
z-index: 10000000;
@@ -24,6 +23,7 @@ define([], function () {
#cp-loading.cp-loading-hidden {
opacity: 0;
visibility: hidden;
transition: opacity 0.75s, visibility 0s 0.75s;
}
#cp-loading .cp-loading-logo {
height: 300px;

View File

@@ -458,6 +458,7 @@ define([
UI.removeLoadingScreen(function () {
UI.alert(Messages.login_noSuchUser, function () {
hashing = false;
$('#password').focus();
});
});
break;
@@ -465,6 +466,7 @@ define([
UI.removeLoadingScreen(function () {
UI.alert(Messages.login_invalUser, function () {
hashing = false;
$('#password').focus();
});
});
break;
@@ -472,6 +474,7 @@ define([
UI.removeLoadingScreen(function () {
UI.alert(Messages.login_invalPass, function () {
hashing = false;
$('#password').focus();
});
});
break;
@@ -482,6 +485,7 @@ define([
]);
UI.alert(warning, function () {
hashing = false;
$('#password').focus();
});
});
break;