header bug aperçu

This commit is contained in:
Fred Tempez 2021-11-16 12:23:26 +01:00
parent ca1c1d1d73
commit c9fd1bc17b

View File

@ -217,15 +217,18 @@ $("#themeHeaderPosition").on("change", function() {
$("#themeHeaderContainerWrapper").slideUp(); $("#themeHeaderContainerWrapper").slideUp();
$("#themeHeaderPositionOptions").slideDown(); $("#themeHeaderPositionOptions").slideDown();
$("#themeHeaderWideWrapper").slideUp(); $("#themeHeaderWideWrapper").slideUp();
$("#themeHeaderMarginWrapper").slideDown();
} }
else if ($(this).val() === 'hide') { else if ($(this).val() === 'hide') {
$("#themeHeaderContainerWrapper").slideUp(); $("#themeHeaderContainerWrapper").slideUp();
$("#themeHeaderWideWrapper").slideUp(); $("#themeHeaderWideWrapper").slideUp();
$("#themeHeaderMarginWrapper").slideUp();
$("#themeHeaderPositionOptions").slideUp(function() { $("#themeHeaderPositionOptions").slideUp(function() {
$("#themeHeaderMargin").prop("checked", false).trigger("change"); $("#themeHeaderMargin").prop("checked", false).trigger("change");
}); });
} else { } else {
$("#themeHeaderWideWrapper").slideDown(); $("#themeHeaderWideWrapper").slideDown();
$("#themeHeaderMarginWrapper").slideUp();
} }
}).trigger("change"); }).trigger("change");