minor patch
This commit is contained in:
parent
c33c83060d
commit
7a27acb32a
1 changed files with 14 additions and 3 deletions
|
@ -13,7 +13,11 @@ class BlueWeatherDashboard {
|
|||
this.params = {
|
||||
loc: 1,
|
||||
page: -1,
|
||||
maxVals: 100
|
||||
maxVals: 100,
|
||||
range: {
|
||||
from: "",
|
||||
to: ""
|
||||
}
|
||||
}
|
||||
|
||||
this.restoreParms(this.params)
|
||||
|
@ -188,7 +192,8 @@ class BlueWeatherDashboard {
|
|||
mainContent.appendChild(tableContainer)
|
||||
}
|
||||
else if (page !== -1) {
|
||||
dashboard.loadDiagram("mainContent", locationData, page)
|
||||
mainContent.innerHTML = ""
|
||||
dashboard.loadDiagram(mainContent, locationData, page)
|
||||
}
|
||||
|
||||
loader.style = "position: absolute; left: 50%; opacity: 0;"
|
||||
|
@ -243,7 +248,13 @@ class BlueWeatherDashboard {
|
|||
}
|
||||
|
||||
loadDiagram(parentId, locationData, sensorId) {
|
||||
if(typeof(parentId) === "string"){
|
||||
mainContent = document.getElementById(parentId)
|
||||
}
|
||||
else {
|
||||
mainContent = parentId
|
||||
}
|
||||
|
||||
// get all relevant meassurement values
|
||||
var vals = []
|
||||
|
||||
|
|
Loading…
Reference in a new issue