Autorefresh
public/javascripts/datetiume.js - added parameter 'params' - refresh all graphics aftter refreshrate public/javascripts/global.js - call showDate with params
This commit is contained in:
@@ -22,8 +22,8 @@ import {setCurrentTab, getCurrentTab, showError, fetchfromserver} from "./chart_
|
||||
weeks: 4,
|
||||
datetime: '',
|
||||
seldate: '',
|
||||
refresh: 0,
|
||||
sid: ''
|
||||
refreshRate: 1,
|
||||
sid: -1
|
||||
}
|
||||
|
||||
// END global variables
|
||||
@@ -154,9 +154,9 @@ import {setCurrentTab, getCurrentTab, showError, fetchfromserver} from "./chart_
|
||||
})
|
||||
})
|
||||
|
||||
dt.showDate(true)
|
||||
dt.showDate(true, params)
|
||||
// and show date/time every minute
|
||||
setInterval(() => dt.showDate(false), 1000)
|
||||
setInterval(() => dt.showDate(false, params), 1000)
|
||||
|
||||
const csid = parseInt(sysparams.csid)
|
||||
if(csid !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user