From fcf7889a935b7f97a2456e892e1551ec17baf8f2 Mon Sep 17 00:00:00 2001 From: remittor Date: Tue, 23 Dec 2025 14:15:22 +0300 Subject: [PATCH] luci: tools: Fix close modal dialog for NFQWS_OPT --- .../htdocs/luci-static/resources/view/zapret2/tools.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/luci-app-zapret/htdocs/luci-static/resources/view/zapret2/tools.js b/luci-app-zapret/htdocs/luci-static/resources/view/zapret2/tools.js index 2677a0a..f8cd171 100644 --- a/luci-app-zapret/htdocs/luci-static/resources/view/zapret2/tools.js +++ b/luci-app-zapret/htdocs/luci-static/resources/view/zapret2/tools.js @@ -543,8 +543,6 @@ return baseclass.extend({ } value = value.replace(/˂/g, '<'); value = value.replace(/˃/g, '>'); - uci.set('zapret2', this.cfgsec, this.cfgparam, value); - uci.save(); let elem = document.getElementById("cbi-zapret-" + this.cfgsec + "-_" + this.cfgparam); if (elem) { let val = value.trim(); @@ -557,7 +555,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))