Ensure UI overview page is refreshed when loading saved net data (#243)

Signed-off-by: AlexDBlack <blacka101@gmail.com>
master
Alex Black 2019-09-05 18:30:51 +10:00 committed by GitHub
parent 45017ec914
commit 04596327c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -21,16 +21,16 @@ function selectStdevChart(fieldName) {
$("#stdevUpdates").attr("class", "active"); $("#stdevUpdates").attr("class", "active");
} }
renderOverviewPage(false); renderOverviewPage(true);
} }
/* ---------- Render page ---------- */ /* ---------- Render page ---------- */
var lastUpdateTime = -1; var lastUpdateTime = -1;
var lastUpdateSession = ""; var lastUpdateSession = "";
function renderOverviewPage(firstLoad) { function renderOverviewPage(forceupdate) {
updateSessionWorkerSelect(); updateSessionWorkerSelect();
if(firstLoad || !lastUpdateSession || lastUpdateSession == "" || lastUpdateSession != currSession){ if(forceupdate || !lastUpdateSession || lastUpdateSession == "" || lastUpdateSession != currSession){
executeOverviewUpdate(); executeOverviewUpdate();
} else { } else {
//Check last update time first - see if data has actually changed... //Check last update time first - see if data has actually changed...