no more href="#"
parent
5df365f546
commit
5c80f0017f
|
@ -221,8 +221,8 @@ function fetchEmojis() {
|
||||||
let classSelectorDOM = document.createElement("li");
|
let classSelectorDOM = document.createElement("li");
|
||||||
classSelectorDOM.classList.add("nav-item");
|
classSelectorDOM.classList.add("nav-item");
|
||||||
|
|
||||||
let classSelectorLinkDOM = document.createElement("a");
|
let classSelectorLinkDOM = document.createElement("button");
|
||||||
classSelectorLinkDOM.href = "#";
|
classSelectorLinkDOM.type = "button";
|
||||||
classSelectorLinkDOM.classList.add("nav-link", "emojitab");
|
classSelectorLinkDOM.classList.add("nav-link", "emojitab");
|
||||||
classSelectorLinkDOM.dataset.bsToggle = "tab";
|
classSelectorLinkDOM.dataset.bsToggle = "tab";
|
||||||
classSelectorLinkDOM.dataset.className = className;
|
classSelectorLinkDOM.dataset.className = className;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div id="emoji-modal-tabs-container">
|
<div id="emoji-modal-tabs-container">
|
||||||
<ul class="nav nav-pills py-2" id="emoji-modal-tabs">
|
<ul class="nav nav-pills py-2" id="emoji-modal-tabs">
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link active emojitab" data-class-name="favorite" data-bs-toggle="tab" href="#">⭐ Favorite ⭐</a>
|
<button type="button" class="nav-link active emojitab" data-class-name="favorite" data-bs-toggle="tab">⭐ Favorite ⭐</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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.') %}
|
{% 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 FEATURES['USERS_PERMANENT_WORD_FILTERS'] %}
|
||||||
{% if v.slurreplacer == 0 %}
|
{% if v.slurreplacer == 0 %}
|
||||||
{% set slurtext = 'Enable if you would like to automatically replace slurs. <a hidden id="slurreplacer-perma-link" href="#" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-slurreplacer">Make filter permanent for a badge!</a>' %}
|
{% set slurtext = 'Enable if you would like to automatically replace slurs. <button type="button" hidden id="slurreplacer-perma-link" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-slurreplacer">Make filter permanent for a badge!</button>' %}
|
||||||
{% elif v.slurreplacer == 1 %}
|
{% elif v.slurreplacer == 1 %}
|
||||||
{% set slurtext = 'Enable if you would like to automatically replace slurs. <a id="slurreplacer-perma-link" href="#" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-slurreplacer">Make filter permanent for a badge!</a>' %}
|
{% set slurtext = 'Enable if you would like to automatically replace slurs. <button type="button" id="slurreplacer-perma-link" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-slurreplacer">Make filter permanent for a badge!</button>' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set slurtext = "You've enabled the slur replacer permanently! ✊🏿" %}
|
{% set slurtext = "You've enabled the slur replacer permanently! ✊🏿" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if v.profanityreplacer == 0 %}
|
{% if v.profanityreplacer == 0 %}
|
||||||
{% set profanitytext = 'Enable if you would like to automatically replace profanities. <a hidden id="profanityreplacer-perma-link" href="#" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-profanityreplacer">Make filter permanent for a badge!</a>' %}
|
{% set profanitytext = 'Enable if you would like to automatically replace profanities. <button type="button" hidden id="profanityreplacer-perma-link" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-profanityreplacer">Make filter permanent for a badge!</button>' %}
|
||||||
{% elif v.profanityreplacer == 1 %}
|
{% elif v.profanityreplacer == 1 %}
|
||||||
{% set profanitytext = 'Enable if you would like to automatically replace profanities. <a id="profanityreplacer-perma-link" href="#" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-profanityreplacer">Make filter permanent for a badge!</a>' %}
|
{% set profanitytext = 'Enable if you would like to automatically replace profanities. <button type="button" id="profanityreplacer-perma-link" class="text-primary" data-bs-toggle="modal" data-bs-target="#modal-profanityreplacer">Make filter permanent for a badge!</button>' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set profanitytext = "You've enabled the profanity replacer permanently! 😇" %}
|
{% set profanitytext = "You've enabled the profanity replacer permanently! 😇" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue