Added ability to show currently selected profile

Added the ability for the web app to show the currently selected profile
upon browser load.  Previously the application was showing the wrong
profile when loading a new client during a run, and backlog information
was shown on top of the incorrect graph.
This commit is contained in:
sbman 2015-07-01 17:37:03 -07:00
parent 21cf3b6a3e
commit 26f02996c3

View File

@ -426,6 +426,11 @@ $(document).ready(function()
if (x.profile)
{
selected_profile_name = x.profile.name;
$.each(profiles, function(i,v) {
if(v.name == x.profile.name) {
updateProfile(i);
$('#e2').select2('val', i);
});
}
$.each(x.log, function(i,v) {