From d4a23ffc983854dae174e4afd3a2f75dafc684db Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 8 Jul 2018 11:52:05 +0300 Subject: [PATCH] Fix loading disappearing too soon --- client/css/style.css | 3 ++- client/js/socket-events/auth.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 1a06b605..0544b28d 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1637,7 +1637,8 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ flex-grow: 0; } -#loading .logo-inverted { +#loading .logo-inverted, +#windows .logo-inverted { display: none; /* In dark themes, inverted logo must be used instead */ } diff --git a/client/js/socket-events/auth.js b/client/js/socket-events/auth.js index cd5fa48e..8f527a82 100644 --- a/client/js/socket-events/auth.js +++ b/client/js/socket-events/auth.js @@ -21,7 +21,6 @@ socket.on("auth", function(data) { if (data.serverHash > -1) { utils.serverHash = data.serverHash; - $("#loading").remove(); login.html(templates.windows.sign_in()); utils.togglePasswordField("#sign-in .reveal-password"); @@ -81,6 +80,7 @@ socket.on("auth", function(data) { return; } + $("#loading").remove(); $("#footer") .find(".sign-in") .trigger("click", {