Skip to content

Commit

Permalink
luci-app-acme: fix _handleCheckService() signature
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Ponomarev <[email protected]>
  • Loading branch information
stokito authored and tohojo committed Jan 7, 2025
1 parent baff305 commit ab1bf13
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
};
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit ab1bf13

Please sign in to comment.