disabled cidr for snmp modal

This commit is contained in:
gabryon99 2020-06-24 20:56:59 +02:00
parent a669e7def3
commit 0c779e0f4e
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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) {

View file

@ -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;