From: Vincent Vanwaelscappel Date: Tue, 21 Sep 2021 10:27:36 +0000 (+0200) Subject: wait #4664 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=72e564a6b4324370b95f8026ad3652135cdb8e27;p=fluidbook-html5.git wait #4664 @0.25 --- diff --git a/js/libs/fluidbook/cart/fluidbook.cart.grandpavois.js b/js/libs/fluidbook/cart/fluidbook.cart.grandpavois.js index afdba425..82e400ad 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.grandpavois.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.grandpavois.js @@ -32,6 +32,7 @@ FluidbookCartGrandPavois.prototype = { }, removeFromCart: function (key) { + console.log('remove from cart ' + key); this.items.splice(key, 1); this.save(); }, @@ -64,8 +65,8 @@ FluidbookCartGrandPavois.prototype = { }, updateCart: function () { - if ($('#mifcart').length > 0) { - $('#mifcart .content').html(this.getCartContent()); + if ($('#grandpavoiscart').length > 0) { + $('#grandpavoiscart .content').html(this.getCartContent()); } }, @@ -85,12 +86,16 @@ FluidbookCartGrandPavois.prototype = { }, getCartContent: function () { + + + var $this = this; + var content = '
'; if (this.getItemsNumbers() == 0) { - return '
Votre liste d\'exposants est vide
'; + content += '
Votre liste d\'exposants est vide
'; + return content; } - var $this = this; - var content = ''; + content += '
'; content += ''; content += ''; content += ''; @@ -196,7 +201,6 @@ FluidbookCartGrandPavois.prototype = { view += this.fluidbook.menu.getCaption(); view += '
'; - view += '
'; view += "" + content; view += '
'; view += ''; diff --git a/style/cart/grandpavois.less b/style/cart/grandpavois.less index 720815b5..bd71e003 100644 --- a/style/cart/grandpavois.less +++ b/style/cart/grandpavois.less @@ -7,6 +7,10 @@ height: 0; text-transform: uppercase; } + + .cart-empty{ + color:#000; + } } .mview #grandpavoiscart .fonctions a {
Exposant