From 26f02996c396c95d690fe399151bbbd3534440cb Mon Sep 17 00:00:00 2001 From: sbman Date: Wed, 1 Jul 2015 17:37:03 -0700 Subject: [PATCH] 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. --- public/assets/js/picoreflow.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/assets/js/picoreflow.js b/public/assets/js/picoreflow.js index fe4d8ce..7d9f89a 100644 --- a/public/assets/js/picoreflow.js +++ b/public/assets/js/picoreflow.js @@ -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) {