diff --git a/core/module/theme/view/body/body.js.php b/core/module/theme/view/body/body.js.php index cf08898d..19a42926 100755 --- a/core/module/theme/view/body/body.js.php +++ b/core/module/theme/view/body/body.js.php @@ -21,6 +21,15 @@ $(document).ready(function(){ * Aperçu en direct */ $("input, select").on("change", function() { + + // Option fixe pour contain et cover + var themeBodyImageSize = $("#themeBodyImageSize").val(); + + if(themeBodyImageSize === "cover" || + themeBodyImageSize === "contain" ) { + $("#themeBodyImageAttachment").val("fixed"); + } + // Couleur du fond var css = "html{background-color:" + $("#themeBodyBackgroundColor").val() + "}"; // Image du fond