options animation largeur

This commit is contained in:
Fred Tempez 2021-11-11 16:29:20 +01:00
parent 7db65c45b1
commit 92e5f06d46
1 changed files with 4 additions and 0 deletions

View File

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