Commit 2f952a79 authored by Joshua Tauberer's avatar Joshua Tauberer

delay an ajax call to see if this fixes the problem of the loading indicator...

delay an ajax call to see if this fixes the problem of the loading indicator not going away after showing the user a panel after login
parent f9eceec7
...@@ -99,8 +99,10 @@ function do_login() { ...@@ -99,8 +99,10 @@ function do_login() {
} }
} }
// Open the next panel the user wants to go to. // Open the next panel the user wants to go to. Do this after the XHR response
show_panel(!switch_back_to_panel ? 'system_status' : switch_back_to_panel) // 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);
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment