From c1c6c06547232ac8b83eb7935f5027684c46f340 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 18 Feb 2023 18:02:19 +0200 Subject: [PATCH] fix minor console error --- files/assets/js/chat.js | 2 +- files/templates/chat.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index 47cfc432d..81aea24a5 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -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'); } diff --git a/files/templates/chat.html b/files/templates/chat.html index 6823bade3..f41f44c98 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -59,7 +59,7 @@ {% if m %}{{m['text']}}{% endif %} {% if v.admin_level > 1 %} - + {% endif %}