Browse Source

Suppression console.log

master
fredtempez 8 months ago
parent
commit
e9ed9aaa2e
  1. 2
      core/module/config/view/index/index.js.php
  2. 8
      core/module/theme/view/footer/footer.js.php
  3. 4
      core/module/theme/view/header/header.js.php
  4. 1
      core/module/theme/view/site/site.js.php
  5. 1
      core/vendor/lity/init.js
  6. 1
      module/gallery/view/gallery/gallery.js.php

2
core/module/config/view/index/index.js.php

@ -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();

8
core/module/theme/view/footer/footer.js.php

@ -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 );

4
core/module/theme/view/header/header.js.php

@ -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;}';*/
}

1
core/module/theme/view/site/site.js.php

@ -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 {

1
core/vendor/lity/init.js vendored

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

1
module/gallery/view/gallery/gallery.js.php

@ -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();
}

Loading…
Cancel
Save