Ensure UI overview page is refreshed when loading saved net data (#243)
Signed-off-by: AlexDBlack <blacka101@gmail.com>master
parent
45017ec914
commit
04596327c4
|
@ -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...
|
||||||
|
|
Loading…
Reference in New Issue