mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
Fixed empty selection on edit of active monitoring (Issue #5756)
This commit is contained in:
parent
d5253b6eb2
commit
de0a2e3d36
1 changed files with 3 additions and 3 deletions
|
|
@ -287,12 +287,12 @@ $(function() {
|
|||
const DEFAULT_HOST = "";
|
||||
const DEFAULT_POOL = 0;
|
||||
|
||||
const cur_measurement = amData.measurement || DEFAULT_MEASUREMENT;
|
||||
const cur_measurement = amData.measurement_key || DEFAULT_MEASUREMENT;
|
||||
const $dialog = $('#am-edit-modal');
|
||||
dialogDisableUniqueMeasurements($dialog, cur_measurement);
|
||||
// fill input boxes
|
||||
$('#input-edit-threshold').val(amData.threshold || DEFAULT_THRESHOLD);
|
||||
$('#select-edit-measurement').val(cur_measurement);
|
||||
$('#select-edit-measurement').val(cur_measurement).change();
|
||||
$('#select-edit-granularity').val(amData.granularity || DEFAULT_GRANULARITY);
|
||||
$('#input-edit-host').val(amData.host || DEFAULT_HOST);
|
||||
$(`#select-edit-pool`).val(amData.pool || DEFAULT_POOL);
|
||||
|
|
@ -326,7 +326,7 @@ $(function() {
|
|||
action: 'edit',
|
||||
threshold: threshold,
|
||||
am_host: host,
|
||||
measurement: measurement,
|
||||
measurement: measurement_key,
|
||||
old_am_host: amData.host,
|
||||
old_measurement: amData.measurement,
|
||||
granularity: granularity,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue