From 170e0844c6c31e2a3c5a647cdf09982f0d745799 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Mon, 13 May 2019 21:01:37 +0200 Subject: [PATCH] =?UTF-8?q?[9.1.04]=20Aper=C3=A7u=20header=20ok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/view/header/header.js.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php index ab730291..6748571a 100755 --- a/core/module/theme/view/header/header.js.php +++ b/core/module/theme/view/header/header.js.php @@ -48,14 +48,17 @@ $("input, select").on("change", function() { // Pas d'image sélectionnée } else { // Désactiver l'option responsive - if (themeHeaderHeight === "none") { - $("#themeHeaderHeight option:eq(2)").prop("selected", true); - } - css += "background-image:none;"; + css += "background-image:none;"; + $("header .container").show(); + $("themeHeaderTextHide").prop("false"); + if (themeHeaderHeight === "none") { + $("#themeHeaderHeight option:eq(2)").prop("selected", true); + css += "line-height: 150px;height: 150px}"; + } else { css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + themeHeaderHeight + "}"; - $("header .container").show(); + } } - + // Taille, couleur, épaisseur et capitalisation du titre de la bannière css += "header span{color:" + $("#themeHeaderTextColor").val() + ";font-family:'" + headerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeHeaderFontWeight").val() + ";font-size:" + $("#themeHeaderFontSize").val() + ";text-transform:" + $("#themeHeaderTextTransform").val() + "}"; // Cache le titre de la bannière