luci: tools: Fix close modal dialog for NFQWS_OPT

This commit is contained in:
remittor
2025-12-23 14:14:07 +03:00
parent 1c866d5de1
commit 8aff441b88

View File

@@ -544,8 +544,6 @@ return baseclass.extend({
}
value = value.replace(/˂/g, '<');
value = value.replace(/˃/g, '>');
uci.set('zapret', this.cfgsec, this.cfgparam, value);
uci.save();
let elem = document.getElementById("cbi-zapret-" + this.cfgsec + "-_" + this.cfgparam);
if (elem) {
let val = value.trim();
@@ -558,7 +556,8 @@ return baseclass.extend({
elem.querySelector('div').textContent = val;
}
}
ui.hideModal();
uci.set('zapret', this.cfgsec, this.cfgparam, value);
uci.save().then(() => window.location.reload());
/*
return uci.save()
.then(L.bind(ui.changes.init, ui.changes))