mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Fix end date picker not updating on realtime chart refresh
This commit is contained in:
parent
cfcf30ae9d
commit
8c42de05c5
3 changed files with 5 additions and 3 deletions
|
|
@ -498,7 +498,9 @@ function attachStackedChartCallback(chart, schema_name, chart_id, zoom_reset_id,
|
|||
|
||||
// Update datetime selection
|
||||
$("#period_begin").data("DateTimePicker").date(new Date(params.epoch_begin * 1000));
|
||||
$("#period_end").data("DateTimePicker").date(new Date(Math.min(params.epoch_end * 1000, $.now())));
|
||||
$("#period_end").data("DateTimePicker")
|
||||
.maxDate(new Date($.now()))
|
||||
.date(new Date(Math.min(params.epoch_end * 1000, $.now())));
|
||||
|
||||
// Load data via ajax
|
||||
pending_request = $.get(url, params, function(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue