From dbb41865b477661b2234255db2c54bc953ce5c86 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 24 Feb 2021 12:00:16 +0100 Subject: [PATCH] wait #4296 @1 --- .../fluidbook/cart/fluidbook.cart.grandvision.js | 3 ++- style/cart/grandvision.less | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js b/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js index 929d382d..bbe7054d 100644 --- a/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js +++ b/js/libs/fluidbook/cart/fluidbook.cart.grandvision.js @@ -94,12 +94,13 @@ FluidbookCartGrandVision.prototype = { }); $(document).on('change', '#grandvision-boxes textarea', function () { + $(this).parent.find('p').text($(this).val()); $this.save(); }); }, getTextarea: function (text) { - return '
' + getSpriteIcon('interface-close') + '
' + return '

' + text + '

' + getSpriteIcon('interface-close') + '
' }, getExportFileName: function () { diff --git a/style/cart/grandvision.less b/style/cart/grandvision.less index 5e9cd672..bd114ecf 100644 --- a/style/cart/grandvision.less +++ b/style/cart/grandvision.less @@ -334,6 +334,10 @@ padding: 15px; white-space: normal; + p{ + display: none; + } + [data-cart-delete] { display: none; } @@ -347,7 +351,7 @@ textarea { font-family: @font; text-align: center; - + color:#000; font-size: 15px; border: 0; width: 100%; @@ -573,7 +577,11 @@ .text { padding: 0.25cm; - textarea { + textarea{ + display: none; + } + p { + display: block; border: 0; font-family: @font; font-size: 0.5cm; @@ -581,6 +589,8 @@ resize: none; width: 100%; height: 100%; + color:#000; + background-color: #fff; } } -- 2.39.5