C0ML: parameter email server, improve check for sendmail
This commit is contained in:
parent
f406064cdb
commit
c6a34abb3e
5 changed files with 90 additions and 7 deletions
|
|
@ -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();
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue