[BUGFIX] Les cookies obligatoires sont toujours en bouton avec la configuration showDetailsOnClick

This commit is contained in:
Dylan Delacôte 2023-07-31 15:55:58 +02:00
parent a303bbeb19
commit e356fc7f7e
1 changed files with 5 additions and 1 deletions

View File

@ -359,7 +359,11 @@ var tarteaucitron = {
if (tarteaucitron.parameters.mandatory == true) {
html += '<li id="tarteaucitronServicesTitle_mandatory">';
html += '<div class="tarteaucitronTitle">';
html += ' <button type="button" tabindex="-1"><span class="tarteaucitronPlus" aria-hidden="true"></span> ' + tarteaucitron.lang.mandatoryTitle + '</button>';
if(tarteaucitron.parameters.showDetailsOnClick){
html += ' <button type="button" tabindex="-1"><span class="tarteaucitronPlus" aria-hidden="true"></span> ' + tarteaucitron.lang.mandatoryTitle + '</button>';
}else{
html += ' <span>' + tarteaucitron.lang.mandatoryTitle + '</span>';
}
html += '</div>';
html += '<ul id="tarteaucitronServices_mandatory">';
html += '<li class="tarteaucitronLine">';