minor patch

This commit is contained in:
Dorian Zedler 2019-07-14 22:02:35 +02:00
parent c33c83060d
commit 7a27acb32a

View file

@ -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 = []