Datepicker neu (jquery)
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user