fix minor console error

pull/124/head
Aevann 2023-02-18 18:02:19 +02:00
parent 38db199123
commit c1c6c06547
2 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ socket.on('delete', function(text) {
})
document.addEventListener('click', function (e) {
if (e.target.classList.contains('fa-trash-alt')) {
if (e.target.classList.contains('delconfirm')) {
e.target.nextElementSibling.classList.remove('d-none');
e.target.classList.add('d-none');
}

View File

@ -59,7 +59,7 @@
<span class="text d-none">{% if m %}{{m['text']}}{% endif %}</span>
<i class="quote btn fas fa-reply ml-auto" data-nonce="{{g.nonce}}" data-onclick="quote(this)"></i>
{% if v.admin_level > 1 %}
<i class="btn del fas fa-trash-alt"></i>
<i class="btn del delconfirm fas fa-trash-alt"></i>
<i class="btn d-none del delmsg fas fa-trash-alt text-danger" data-nonce="{{g.nonce}}" data-onclick="del(this)"></i>
{% endif %}
</div>