luci-app-acme: fix _handleCheckService() signature
authorSergey Ponomarev <stokito@gmail.com>
Sun, 29 Dec 2024 10:58:23 +0000 (12:58 +0200)
committerToke Høiland-Jørgensen <toke@toke.dk>
Tue, 7 Jan 2025 19:12:57 +0000 (20:12 +0100)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
applications/luci-app-acme/htdocs/luci-static/resources/view/acme.js

index d71a35ea504162adc21bda754ed92af8e1c75b1d..f287e25da65a07b46983ed32e50e9e12110202a6 100644 (file)
@@ -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;
 }