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

View File

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

View File

@ -168,9 +168,9 @@ $("input, select").on("change", function() {
// Marge dans le site // Marge dans le site
if( $("#themeHeaderMargin").is(":checked") && if( $("#themeHeaderMargin").is(":checked") &&
$("#themeHeaderPosition").val() === "site" $("#themeHeaderPosition").val() === "site"
) { console.log("truc") ; ) {
css += 'header{margin:20px 20px 0 20px !important;}'; css += 'header{margin:20px 20px 0 20px !important;}';
/*} else { console.log("truc2") ; /*} else {
css += 'header{margin:0 !important;}';*/ 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 * Option de marge si la taille n'est pas fluide
*/ */
if ($('#themeSiteWidth').val() === '100%') { if ($('#themeSiteWidth').val() === '100%') {
console.log ("pop");
$("#themeSiteMarginWrapper").prop("checked", true); $("#themeSiteMarginWrapper").prop("checked", true);
$("#themeSiteMarginWrapper").hide(); $("#themeSiteMarginWrapper").hide();
} else { } else {

View File

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

View File

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