Settings added
public/chart_utilities.js
- showError with id
public/javascripts/global.js
- save parameter fron settings
views/index.pug
- add settings dialog
views/layout.pug
- add flatpicker
public/javascripts/map.js
- add error evaluation
public/javascripts/showcharts.js
- error avelauation added
public/stylesheets/style.sass
- add styles for settings dialog
This commit is contained in:
@@ -59,15 +59,14 @@ export async function showMap(params, status) {
|
||||
params.sid = clickedSensor
|
||||
let triggerEl = document.querySelector('#livetab')
|
||||
bootstrap.Tab.getInstance(triggerEl).show() // Select tab by name
|
||||
await showChart(params, 'live', 'dlive')
|
||||
loadAll(params)
|
||||
status.loaded = true
|
||||
let ok = await showChart(params, 'live', 'dlive')
|
||||
if (ok) {
|
||||
loadAll(params)
|
||||
status.loaded = true
|
||||
}
|
||||
map.setView([clickedcoords.lat, clickedcoords.lng]);
|
||||
|
||||
|
||||
})
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user