From d9359a60e294b82fa24ca53a371410e120ea3268 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 21 May 2020 08:01:28 +0200 Subject: [PATCH] =?UTF-8?q?10.1=20aper=C3=A7u=20th=C3=A8me=20du=20site?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/view/site/site.js.php | 24 ++++++++++++------------ core/module/theme/view/site/site.php | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) 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(); - $("