diff --git a/core/module/theme/view/header/header.js.php b/core/module/theme/view/header/header.js.php index dece15cd..07e021db 100644 --- a/core/module/theme/view/header/header.js.php +++ b/core/module/theme/view/header/header.js.php @@ -47,9 +47,9 @@ $("input, select").on("change", function() { var tmpImg = new Image(); tmpImg.onload = function() { // Informations affichées - $("#themeHeaderImageHeight").html(tmpImg.height + "px"); - $("#themeHeaderImageWidth").html(tmpImg.width + "px"); - $("#themeHeaderImageRatio").html(tmpImg.width / tmpImg.height); + $("#themeHeaderImageHeight").val(tmpImg.height + " px"); + $("#themeHeaderImageWidth").val(tmpImg.width + " px"); + $("#themeHeaderImageRatio").val(tmpImg.width / tmpImg.height); // Limiter la hauteur à 600 px if (tmpImg.height > 600) { diff --git a/core/module/theme/view/header/header.php b/core/module/theme/view/header/header.php index 60020003..25cf67a4 100644 --- a/core/module/theme/view/header/header.php +++ b/core/module/theme/view/header/header.php @@ -163,6 +163,32 @@ ]); ?> +