Fix loading disappearing too soon

This commit is contained in:
Pavel Djundik 2018-07-08 11:52:05 +03:00 committed by Pavel Djundik
parent 7e332b817d
commit d4a23ffc98
2 changed files with 3 additions and 2 deletions

View File

@ -1637,7 +1637,8 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
flex-grow: 0; flex-grow: 0;
} }
#loading .logo-inverted { #loading .logo-inverted,
#windows .logo-inverted {
display: none; /* In dark themes, inverted logo must be used instead */ display: none; /* In dark themes, inverted logo must be used instead */
} }

View File

@ -21,7 +21,6 @@ socket.on("auth", function(data) {
if (data.serverHash > -1) { if (data.serverHash > -1) {
utils.serverHash = data.serverHash; utils.serverHash = data.serverHash;
$("#loading").remove();
login.html(templates.windows.sign_in()); login.html(templates.windows.sign_in());
utils.togglePasswordField("#sign-in .reveal-password"); utils.togglePasswordField("#sign-in .reveal-password");
@ -81,6 +80,7 @@ socket.on("auth", function(data) {
return; return;
} }
$("#loading").remove();
$("#footer") $("#footer")
.find(".sign-in") .find(".sign-in")
.trigger("click", { .trigger("click", {