From 5c80f0017f4f7b7768ef4ff6aa338308abeb7c4e Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 2 Oct 2023 09:06:29 +0300 Subject: [PATCH] no more href="#" --- files/assets/js/emoji_modal.js | 4 ++-- files/templates/modals/emoji.html | 2 +- files/templates/settings/personal.html | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index bb261a8a0..09277bdcb 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -221,8 +221,8 @@ function fetchEmojis() { let classSelectorDOM = document.createElement("li"); classSelectorDOM.classList.add("nav-item"); - let classSelectorLinkDOM = document.createElement("a"); - classSelectorLinkDOM.href = "#"; + let classSelectorLinkDOM = document.createElement("button"); + classSelectorLinkDOM.type = "button"; classSelectorLinkDOM.classList.add("nav-link", "emojitab"); classSelectorLinkDOM.dataset.bsToggle = "tab"; classSelectorLinkDOM.dataset.className = className; diff --git a/files/templates/modals/emoji.html b/files/templates/modals/emoji.html index 9ae836411..266bfb47b 100644 --- a/files/templates/modals/emoji.html +++ b/files/templates/modals/emoji.html @@ -6,7 +6,7 @@
diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index 027774a8e..5e428fea7 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -272,17 +272,17 @@ {% set ns = namespace(slurtext='Enable if you would like to automatically replace slurs.', profanitytext='Enable if you would like to automatically replace profanities.') %} {% if FEATURES['USERS_PERMANENT_WORD_FILTERS'] %} {% if v.slurreplacer == 0 %} - {% set slurtext = 'Enable if you would like to automatically replace slurs. ' %} + {% set slurtext = 'Enable if you would like to automatically replace slurs. ' %} {% elif v.slurreplacer == 1 %} - {% set slurtext = 'Enable if you would like to automatically replace slurs. Make filter permanent for a badge!' %} + {% set slurtext = 'Enable if you would like to automatically replace slurs. ' %} {% else %} {% set slurtext = "You've enabled the slur replacer permanently! ✊🏿" %} {% endif %} {% if v.profanityreplacer == 0 %} - {% set profanitytext = 'Enable if you would like to automatically replace profanities. ' %} + {% set profanitytext = 'Enable if you would like to automatically replace profanities. ' %} {% elif v.profanityreplacer == 1 %} - {% set profanitytext = 'Enable if you would like to automatically replace profanities. Make filter permanent for a badge!' %} + {% set profanitytext = 'Enable if you would like to automatically replace profanities. ' %} {% else %} {% set profanitytext = "You've enabled the profanity replacer permanently! 😇" %} {% endif %}