mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-04 09:50:09 +00:00
parent
92ea3cf5a0
commit
9f0fca8c12
2 changed files with 29 additions and 30 deletions
|
|
@ -257,13 +257,17 @@
|
|||
return $("<p>Not enabled!</p>")
|
||||
}
|
||||
else if (input_builder == 'threshold_cross') {
|
||||
var operators = ["gt", "lt"];
|
||||
var select = $(`<select class='btn btn-outline-secondary'></select>`);
|
||||
|
||||
operators.forEach((op) => {
|
||||
/* If a field_operator is set, only show that operator */
|
||||
if((!field_operator) || (field_operator == op))
|
||||
select.append($(`<option value="${op}">&${op}</option>`))
|
||||
});
|
||||
|
||||
return $(`<div class='input-group template w-75'></div>`)
|
||||
.append(`<div class='input-group-prepend'>
|
||||
<select class='btn btn-outline-secondary'>
|
||||
<option selected value="gt">></option>
|
||||
<option value="lt"><</option>
|
||||
</select>
|
||||
</div>`)
|
||||
.append(`<div class='input-group-prepend'></div>`).html(select)
|
||||
.append(`<input type='number'
|
||||
class='form-control'
|
||||
min='${field_min == undefined ? '' : field_min}'
|
||||
|
|
@ -528,4 +532,4 @@
|
|||
$disabled_button.html(`${i18n.disabled} (${disabled_count})`);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue