Revert humanfriendly tag disply in Kiwix Server

This commit is contained in:
Emmanuel Engelhart
2024-05-11 16:19:16 +02:00
parent a0c4118fd3
commit 84405b1318
2 changed files with 4 additions and 5 deletions

View File

@ -486,9 +486,8 @@
function addTagElement(tagValue, resetFilter) {
const tagElement = document.getElementsByClassName('tagFilterLabel')[0];
tagElement.style.display = 'inline-block';
const humanFriendlyTagValue = humanFriendlyTitle(tagValue);
tagElement.innerHTML = `${humanFriendlyTagValue}`;
const tagMessage = $t("stop-filtering-by-tag", {TAG: humanFriendlyTagValue});
tagElement.innerHTML = `${tagValue}`;
const tagMessage = $t("stop-filtering-by-tag", {TAG: tagValue});
tagElement.setAttribute('aria-label', tagMessage);
tagElement.setAttribute('title', tagMessage);
if (resetFilter)