diff --git a/core/module/theme/view/site/site.js.php b/core/module/theme/view/site/site.js.php index 4ad25d3e..ba211043 100755 --- a/core/module/theme/view/site/site.js.php +++ b/core/module/theme/view/site/site.js.php @@ -13,7 +13,8 @@ /* * Chargement de l'aperçu */ -$( document).ready(function() { +$(document).ready(function() { + /** * Option de marge si la taille n'est pas fluide */ @@ -23,22 +24,21 @@ $( document).ready(function() { } else { $("#themeSiteMargin").addClass("enabled"); } - var backgroundImage = getData(['theme','body','image'])); ?>; - var backgroundcolor = getdata(['theme','body','backgroundColor'])); ?>; - css = "div.bodybackground{background-color:" + backgroundcolor + "; background-image: url(" + backgroundImage + ");background-size:cover;}"; - css += "div.bgPreview{padding: 5px;background-color:" + $("#themeSiteBackgroundColor").val() + ";}"; - $("#themePreview").remove(); - $("