summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-09-06 00:10:25 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-09-06 00:10:38 +0200
commit929c520def5dd1393f831befac1bf9dee9f9d796 (patch)
tree49e0c913c336981c0ae51038cd28f7b304ab69bf /applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns
parent868b6e4b1a9c8f5ca0f5d567e6649a13a22d5fcf (diff)
luci-app-ddns: add uppercase helper for cacert fields.
Set 'ignore' to the script recognized value of 'IGNORE'. Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns')
-rw-r--r--applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js
index 4f70b601cd..1764c01730 100644
--- a/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js
+++ b/applications/luci-app-ddns/htdocs/luci-static/resources/view/ddns/overview.js
@@ -452,6 +452,10 @@ return view.extend({
o = s.taboption('global', form.Value, 'cacert', _('CA Certs path'));
o.description = _('CA certificates path that will be used to download services data. Set IGNORE to skip certificate validation.');
o.placeholder = 'IGNORE';
+ o.write = function(section_id, value) {
+ if(value == 'ignore')
+ uci.set('ddns', section_id, 'cacert', value.toUpperCase());
+ };
o = s.taboption('global', form.Value, 'services_url', _('Services URL Download'));
o.description = _('Source URL for services file. Defaults to the master openwrt ddns package repo.');
@@ -783,6 +787,10 @@ return view.extend({
o.placeholder = "/etc/ssl/certs";
o.rmempty = false;
o.optional = true;
+ o.write = function(section_id, value) {
+ if(value == 'ignore')
+ uci.set('ddns', section_id, 'cacert', value.toUpperCase());
+ };
};