summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-https-dns-proxy/htdocs
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-https-dns-proxy/htdocs')
-rw-r--r--applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js
index a9bc25b905..253525fb4a 100644
--- a/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js
+++ b/applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js
@@ -297,8 +297,8 @@ return view.extend({
section_id,
"resolver_url"
);
- if (_paramList.template !== template) return 0;
- let resolver = pkg.templateToResolver(template, {
+ if (!formvalue && _paramList.template !== template) return 0;
+ let resolver = pkg.templateToResolver(_paramList.template, {
option: formvalue || "",
});
L.uci.set(pkg.Name, section_id, "resolver_url", resolver);
@@ -335,8 +335,8 @@ return view.extend({
section_id,
"resolver_url"
);
- if (_paramText.template !== template) return 0;
- let resolver = pkg.templateToResolver(template, {
+ if (!formvalue && _paramText.template !== template) return 0;
+ let resolver = pkg.templateToResolver(_paramText.template, {
option: formvalue || "",
});
L.uci.set(pkg.Name, section_id, "resolver_url", resolver);