allow to hide readmore button with param : readmore:false

This commit is contained in:
Thomas Combe 2018-05-24 11:09:03 +02:00
parent a7b5fb7e36
commit b634ce33bc
1 changed files with 6 additions and 4 deletions

View File

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