options animation largeur

This commit is contained in:
Fred Tempez 2021-11-11 16:29:20 +01:00
parent 7db65c45b1
commit 92e5f06d46

View File

@ -212,9 +212,13 @@ $("#themeHeaderImage").on("change", function() {
// Affiche / Cache les options de la position // Affiche / Cache les options de la position
$("#themeHeaderPosition").on("change", function() { $("#themeHeaderPosition").on("change", function() {
if($(this).val() === 'site') { if($(this).val() === 'site') {
$("#themeHeaderContainerWrapper").slideUp();
$("#themeHeaderPositionOptions").slideDown(); $("#themeHeaderPositionOptions").slideDown();
} }
else { else {
if($(this).val() === 'hide') {
$("#themeHeaderContainerWrapper").slideUp();
}
$("#themeHeaderPositionOptions").slideUp(function() { $("#themeHeaderPositionOptions").slideUp(function() {
$("#themeHeaderMargin").prop("checked", false).trigger("change"); $("#themeHeaderMargin").prop("checked", false).trigger("change");
}); });