diff options
| author | Stan Grishin <stangri@melmac.ca> | 2024-01-09 03:43:04 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 03:43:04 -0700 |
| commit | 9b56e2d440348ee3f78c0162c84635fcc1193176 (patch) | |
| tree | e3225481c6c5378fd50c454496896b1aacf10997 /applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js | |
| parent | 49f9b430fd3fe835392d01bddf12ea05a2109e6e (diff) | |
| parent | a83427fefe497fcda92a3f9b59701dc91a6f1df1 (diff) | |
Merge pull request #6821 from stangri/master-luci-app-https-dns-proxy
luci-app-https-dns-proxy: bugfix: editing providers with options
Diffstat (limited to 'applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js')
| -rw-r--r-- | applications/luci-app-https-dns-proxy/htdocs/luci-static/resources/view/https-dns-proxy/overview.js | 8 |
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); |
