From 036d61a027199d2cf4eb5f79f858f9a237555a3d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 23 Sep 2021 12:18:16 +0200 Subject: [PATCH] wait #4696 @0.25 --- .../fluidbook/cart/fluidbook.cart.joueclub2021.js | 13 ++++++++++++- style/cart/grandpavois.less | 6 ++++++ style/cart/joueclub2021.less | 8 +++++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.joueclub2021.js b/js/libs/fluidbook/cart/fluidbook.cart.joueclub2021.js index a4ca078e..2abca139 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.joueclub2021.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.joueclub2021.js @@ -27,8 +27,19 @@ FluidbookCartJoueClub2021.prototype = { if (this.items.indexOf(ref) === -1) { this.items.push(ref); this.save(); + return "Le jouet a été ajouté à votre liste de cadeaux"; + } else { + this.removeFromCartByRef(ref); + return "Le jouet a été retiré de votre liste de cadeaux"; + } + + }, + + removeFromCartByRef: function (ref) { + var key = this.items.indexOf(ref); + if (key >= 0) { + this.removeFromCart(key) } - return "Le jouet a été ajouté à votre liste de cadeaux"; }, removeFromCart: function (key) { diff --git a/style/cart/grandpavois.less b/style/cart/grandpavois.less index bd71e003..f286416f 100644 --- a/style/cart/grandpavois.less +++ b/style/cart/grandpavois.less @@ -43,6 +43,12 @@ #grandpavoiscartprint { &.print { + + &.ps.ps--active-y { + overflow: visible !important; + max-height: none !important; + } + font-size: 8px; .ps__rail-y, .ps__rail-x { diff --git a/style/cart/joueclub2021.less b/style/cart/joueclub2021.less index 9db59c49..f05b9fe0 100644 --- a/style/cart/joueclub2021.less +++ b/style/cart/joueclub2021.less @@ -28,9 +28,11 @@ border-radius: 8px; } -[data-type="7"] { +[data-type="12"] { svg { pointer-events: none; + width: 100%; + height: 100%; } .on { @@ -56,6 +58,10 @@ &.print { + &.ps.ps--active-y { + overflow: visible !important; + max-height: none !important; + } font-size: 8px; -- 2.39.5