From: Sergey Ponomarev Date: Sun, 29 Dec 2024 10:58:23 +0000 (+0200) Subject: luci-app-acme: fix _handleCheckService() signature X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ab1bf13c6ea4c10cf7009d7919d9f11eed8bd4b3;p=project%2Fluci.git luci-app-acme: fix _handleCheckService() signature Signed-off-by: Sergey Ponomarev --- diff --git a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js index d71a35ea50..f287e25da6 100644 --- a/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js +++ b/applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js @@ -234,7 +234,7 @@ return view.extend({ o.value('dns_zone', 'Zone.ee'); o.value('dns_zonomi', 'Zonomi.com'); o.modalonly = true; - o.onchange = L.bind(_handleCheckService, o, s); + o.onchange = _handleCheckService; o = s.taboption('challenge_dns', form.DummyValue, '_wiki_url', _('See instructions'), ''); o.rawhtml = true; @@ -536,7 +536,7 @@ function _addDnsProviderField(s, provider, env, title, desc) { _(desc)); o.depends('dns', provider); o.modalonly = true; - o.cfgvalue = function (section_id, stored_val) { + o.cfgvalue = function (section_id) { let creds = this.map.data.get(this.map.config, section_id, 'credentials'); return _extractParamValue(creds, env); }; @@ -594,7 +594,7 @@ function _parseKeyValueListToMap(paramsKeyVals) { return map; } -function _handleCheckService(c, event, curVal, newVal) { +function _handleCheckService(event, section_id, newVal) { document.getElementById('wikiInstructionUrl').href = 'https://github.com/acmesh-official/acme.sh/wiki/dnsapi#' + newVal; }