Datepicker neu (jquery)

This commit is contained in:
2024-08-27 13:15:58 +00:00
parent 6e814fe338
commit 41d252d564
3 changed files with 30 additions and 21 deletions
+6 -4
View File
@@ -61,10 +61,10 @@ export async function showChart(params, typ, container) {
}
console.log(`fetch ${typ} from server ${url}`)
let erg = await fetchfromserver(url)
if(sysparams.category === 'noise') {
utils.showTabs()
}
if (!erg.err) {
if(sysparams.category === 'noise') {
utils.showTabs()
}
erg.options.xAxis.labels.formatter = xformat
erg.options.tooltip.formatter = form
let chart = Highcharts.chart(container, erg.options, function (chart) {
@@ -93,7 +93,9 @@ export async function showChart(params, typ, container) {
})
return {error: false}
} else {
// showError(erg.err)
if(typ === 'live') {
showError(erg.err)
}
return {error: erg.err}
}
}