From b8e99c30a2071d1f7ef254c04da83cb82c252454 Mon Sep 17 00:00:00 2001 From: yodax Date: Sat, 20 Feb 2016 18:42:28 +0100 Subject: [PATCH] When previous panel was login, move to system_status --- management/templates/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/templates/login.html b/management/templates/login.html index 96393bd7..04c27279 100644 --- a/management/templates/login.html +++ b/management/templates/login.html @@ -117,7 +117,7 @@ function do_login() { // Open the next panel the user wants to go to. Do this after the XHR response // is over so that we don't start a new XHR request while this one is finishing, // which confuses the loading indicator. - setTimeout(function() { show_panel(!switch_back_to_panel ? 'system_status' : switch_back_to_panel) }, 300); + setTimeout(function() { show_panel(!switch_back_to_panel || switch_back_to_panel == "login" ? 'system_status' : switch_back_to_panel) }, 300); } }) }