C0ML: parameter email server, improve check for sendmail

This commit is contained in:
sparkyx 2026-05-08 12:04:24 +02:00
parent f406064cdb
commit c6a34abb3e
5 changed files with 90 additions and 7 deletions

View file

@ -4946,7 +4946,15 @@ Noalyss.prototype.save_config_smtp = function ()
reconnect();
return;
}
let json = req.evalJSON();
let json = req.responseJSON;
try {
let json=req.responseJSON;
if (json['status']=='NOK') {
smoke.alert(json['error']);
}
}catch (e) {
console.error(e)
}
}
@ -4963,9 +4971,11 @@ Noalyss.prototype.parameter_display_smtp = function ()
if ($F("smtp_type") == 'smtp') {
$("smtp_config_div").style.display = "grid";
$('btn_save1').hide();
$('info_snd').hide();
} else {
$("smtp_config_div").hide();
$('btn_save1').show();
$('info_snd').show();
}
};