From b634ce33bcf0c7783b2c8f47517210d93948eb9c Mon Sep 17 00:00:00 2001 From: Thomas Combe Date: Thu, 24 May 2018 11:09:03 +0200 Subject: [PATCH] allow to hide readmore button with param : readmore:false --- tarteaucitron.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tarteaucitron.js b/tarteaucitron.js index 88cd673..4977e05 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -413,10 +413,12 @@ var tarteaucitron = { html += '
'; html += ' ' + service.name + '
'; html += '
'; - html += ' '; - html += ' ' + tarteaucitron.lang.more; - html += ' '; - html += ' - '; + if(service.readmore !== undefined && service.readmore === false) { + html += ' '; + html += ' ' + tarteaucitron.lang.more; + html += ' '; + html += ' - '; + } html += ' '; html += ' ' + tarteaucitron.lang.source; html += ' ';