Bug présentation options smtp

This commit is contained in:
fredtempez 2021-12-13 13:30:20 +01:00
parent 7f74c62555
commit 787a323001
2 changed files with 10 additions and 6 deletions

View File

@ -492,7 +492,7 @@ class config extends common {
'auth' => $this->getInput('smtpAuth',helper::FILTER_BOOLEAN), 'auth' => $this->getInput('smtpAuth',helper::FILTER_BOOLEAN),
'secure' => $this->getInput('smtpSecure',helper::FILTER_BOOLEAN), 'secure' => $this->getInput('smtpSecure',helper::FILTER_BOOLEAN),
'username' => $this->getInput('smtpUsername',helper::FILTER_STRING_SHORT,$this->getInput('smtpAuth',helper::FILTER_BOOLEAN)), 'username' => $this->getInput('smtpUsername',helper::FILTER_STRING_SHORT,$this->getInput('smtpAuth',helper::FILTER_BOOLEAN)),
'password' =>helper::encrypt($this->getData(['config','smtp','username']),$this->getInput('smtpPassword',$this->getInput('smtpAuth',helper::FILTER_BOOLEAN))), 'password' =>helper::encrypt($this->getData(['config','smtp','username']),$this->getInput('smtpPassword',null,$this->getInput('smtpAuth',helper::FILTER_BOOLEAN))),
'sender' => $this->getInput('smtpSender',helper::FILTER_MAIL) 'sender' => $this->getInput('smtpSender',helper::FILTER_MAIL)
], ],
'seo' => [ 'seo' => [

View File

@ -29,7 +29,7 @@ $( document).ready(function() {
* Afficher et masquer options Auth * Afficher et masquer options Auth
*/ */
if ($("select[name=smtpEnable]").val() == true) { if ($("select[name=smtpAuth]").val() == true) {
$("#smtpAuthParam").addClass("disabled"); $("#smtpAuthParam").addClass("disabled");
$("#smtpAuthParam").slideDown(); $("#smtpAuthParam").slideDown();
} else { } else {
@ -202,16 +202,20 @@ $( document).ready(function() {
/* /*
var containers = ["setup", "locale", "social", "connect", "network"]; var containers = ["setup", "locale", "social", "connect", "network"];
$.each( containers, function( index, value ){ $.each( containers, function( index, value ){
console.log(value);
var a = $("div#" + value + "Container").find("input.notice").not(".displayNone"); var a = $("div#" + value + "Container").find("input.notice").not(".displayNone");
if (a.length > 0) { if (a.length > 0) {
$("#config" + capitalizeFirstLetter(a) + "Button").addClass("buttonNotice"); $("#config" + capitalizeFirstLetter(a) + "Button").addClass("buttonNotice");
} else { } else {
$("#config" + capitalizeFirstLetter(a) + "Button").removeClass("buttonNotice"); $("#config" + capitalizeFirstLetter(a) + "Button").removeClass("buttonNotice");
} }
}); });*/
*/
var locale = $("div#networkContainer").find("input.notice").not(".displayNone");
if (locale.length > 0) {
$("#configNetworkButton").addClass("buttonNotice");
} else {
$("#configNetworkButton").removeClass("buttonNotice");
}
var locale = $("div#localeContainer").find("input.notice").not(".displayNone"); var locale = $("div#localeContainer").find("input.notice").not(".displayNone");
if (locale.length > 0) { if (locale.length > 0) {
$("#configLocaleButton").addClass("buttonNotice"); $("#configLocaleButton").addClass("buttonNotice");