mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
disabled cidr for snmp modal
This commit is contained in:
parent
a669e7def3
commit
0c779e0f4e
4 changed files with 5 additions and 5 deletions
2
httpdocs/js/ntop.min.js
vendored
2
httpdocs/js/ntop.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -156,7 +156,7 @@ $(document).ready(function () {
|
|||
onModalInit: function() {
|
||||
|
||||
// disable dropdown if the user inputs an hostname
|
||||
$(`input[name='snmp_host']`).keyup(function(e) {
|
||||
/* $(`input[name='snmp_host']`).keyup(function(e) {
|
||||
const value = $(this).val();
|
||||
|
||||
if (new RegExp(REGEXES.domainName).test(value)) {
|
||||
|
|
@ -171,7 +171,7 @@ $(document).ready(function () {
|
|||
$(`#select-cidr`).removeAttr("disabled");
|
||||
}
|
||||
|
||||
});
|
||||
}); */
|
||||
|
||||
// Disable passhphrase if the user selects none
|
||||
$(`select#select-level-snmp`).change(function(e) {
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ class DataTableUtils {
|
|||
*/
|
||||
static setCurrentFilter(tableAPI) {
|
||||
|
||||
if (tableAPI.state.loaded().filters == undefined) return;
|
||||
if (!tableAPI.state.loaded().filters) return;
|
||||
|
||||
const filters = tableAPI.state.loaded().filters;
|
||||
if (!filters) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue