Skip to content

Node.js based forum software built for the modern web

fix: closes #14616

Barış Soner Uşaklıa016c8284e67
diff --git a/public/src/modules/navigator.js b/public/src/modules/navigator.js
index 389589a45d..73622d0c27 100644
--- a/public/src/modules/navigator.js
+++ b/public/src/modules/navigator.js
@@ -376,14 +376,11 @@ define('navigator', [
remaining = Math.min(remaining, ajaxify.data.postcount - index);
function toggleAnchor(text) {
- anchorEl.innerText = text;
anchorEl.style.display = text ? 'inline' : 'none';
- if (text) {
- $(anchorEl).translateText(text);
- }
anchorEl.setAttribute('aria-disabled', text ? 'false' : 'true');
if (text) {
anchorEl.removeAttribute('tabindex');
+ $(anchorEl).translateText(text);
} else {
anchorEl.setAttribute('tabindex', -1);
}