Ver Fonte

allow to hide readmore button with param : readmore:false

Thomas Combe há 7 anos atrás
pai
commit
b634ce33bc
1 ficheiros alterados com 6 adições e 4 exclusões
  1. 6 4
      tarteaucitron.js

+ 6 - 4
tarteaucitron.js

@@ -413,10 +413,12 @@ var tarteaucitron = {
             html += '   <div class="tarteaucitronName">';
             html += '       <b>' + service.name + '</b><br/>';
             html += '       <span id="tacCL' + service.key + '" class="tarteaucitronListCookies"></span><br/>';
-            html += '       <a href="https://opt-out.ferank.eu/service/' + service.key + '/" target="_blank" rel="noopener">';
-            html += '           ' + tarteaucitron.lang.more;
-            html += '       </a>';
-            html += '        - ';
+            if(service.readmore !== undefined && service.readmore === false) {
+              html += '       <a href="https://opt-out.ferank.eu/service/' + service.key + '/" target="_blank" rel="noopener">';
+              html += '           ' + tarteaucitron.lang.more;
+              html += '       </a>';
+              html += '        - ';
+            }
             html += '       <a href="' + service.uri + '" target="_blank" rel="noopener">';
             html += '           ' + tarteaucitron.lang.source;
             html += '       </a>';