Suppression console.log

This commit is contained in:
fredtempez 2021-12-06 12:23:39 +01:00
parent 16b934ccc4
commit e9ed9aaa2e
6 changed files with 3 additions and 14 deletions

View File

@ -19,7 +19,6 @@ $( document).ready(function() {
* Afficher et masquer options smtp
*/
if ($("input[name=smtpEnable]").is(':checked')) {
console.log("init");
$("#smtpParam").addClass("disabled");
$("#smtpParam").slideDown();
} else {
@ -59,7 +58,6 @@ $( document).ready(function() {
* Afficher et masquer options smtp
*/
$("input[name=smtpEnable]").on("change", function() {
console.log("truc");
if ($("input[name=smtpEnable]").is(':checked')) {
$("#smtpParam").addClass("disabled");
$("#smtpParam").slideDown();

View File

@ -87,8 +87,6 @@ $(".themeFooterContent").on("change",function() {
textPosition = $("#themeFooterTextPosition").val();
textPosition = textPosition.substr(0,1).toUpperCase()+textPosition.substr(1);
$("#footerText").show().appendTo("#footer" + footerPosition + textPosition);
//console.log("text");
//console.log("#footer" + footerPosition + textPosition);
break;
}
switch($("#themeFooterSocialsPosition").val()) {
@ -100,8 +98,6 @@ $(".themeFooterContent").on("change",function() {
socialsPosition = $("#themeFooterSocialsPosition").val();
socialsPosition = socialsPosition.substr(0,1).toUpperCase()+socialsPosition.substr(1);
$("#footerSocials").show().appendTo("#footer" + footerPosition + socialsPosition);
//console.log("socials");
//console.log("#footer" + footerPosition + socialsPosition);
break;
}
switch($("#themeFooterCopyrightPosition").val()) {
@ -113,8 +109,6 @@ $(".themeFooterContent").on("change",function() {
copyrightPosition = $("#themeFooterCopyrightPosition").val();
copyrightPosition = copyrightPosition.substr(0,1).toUpperCase()+copyrightPosition.substr(1);
$("#footerCopyright").show().appendTo("#footer" + footerPosition + copyrightPosition);
//console.log("copyright");
//console.log("#footer" + footerPosition + copyrightPosition);
break;
}
@ -284,7 +278,6 @@ $("#themeFooterDisplayLegal").on("change", function() {
// Pages spéciales : activation si une page est sélectionnée
$("#configLegalPageId").on("change", function() {
console.log($("#configLegalPageId option:selected").text());
if ( $("#configLegalPageId option:selected").text() === 'Aucune') {
$("#themeFooterDisplayLegal").prop('checked', false);
$("#themeFooterDisplayLegal").prop( "disabled", true );
@ -294,7 +287,6 @@ $("#configLegalPageId").on("change", function() {
}
}).trigger("change");
$("#configSearchPageId").on("change", function() {
console.log($("#configSearchPageId option:selected").text());
if ( $("#configSearchPageId option:selected").text() === 'Aucune') {
$("#themeFooterDisplaySearch").prop('checked', false);
$("#themeFooterDisplaySearch").prop( "disabled", true );

View File

@ -168,9 +168,9 @@ $("input, select").on("change", function() {
// Marge dans le site
if( $("#themeHeaderMargin").is(":checked") &&
$("#themeHeaderPosition").val() === "site"
) { console.log("truc") ;
) {
css += 'header{margin:20px 20px 0 20px !important;}';
/*} else { console.log("truc2") ;
/*} else {
css += 'header{margin:0 !important;}';*/
}

View File

@ -22,7 +22,6 @@ $("input, select").on("change",function() {
* Option de marge si la taille n'est pas fluide
*/
if ($('#themeSiteWidth').val() === '100%') {
console.log ("pop");
$("#themeSiteMarginWrapper").prop("checked", true);
$("#themeSiteMarginWrapper").hide();
} else {

View File

@ -4,4 +4,5 @@ $(document).ready(function() {
$("a[rel='data-lity']").attr(
"data-lity",""
);
$(".lity-content").addClass("notranslate");
});

View File

@ -26,7 +26,6 @@ var b = new SimpleLightbox('.galleryGalleryPicture', {
$( document ).ready(function() {
// Démarre en mode plein écran
var fullscreen = <?php echo json_encode($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'config', 'fullScreen'])); ?>;
console.log(fullscreen);
if ( fullscreen === true) {
$('a#homePicture')[0].click();
}