fix wrong syntax

master
Aevann1 2022-09-14 13:44:16 +02:00
parent af2b69d7bb
commit c3c7b20ccd
1 changed files with 11 additions and 9 deletions

View File

@ -237,14 +237,16 @@
<script defer src="/assets/js/lite-youtube.js?v=4000"></script> <script defer src="/assets/js/lite-youtube.js?v=4000"></script>
<script defer src="/chat.js?h=5"></script> <script defer src="/chat.js?h=5"></script>
{% if v.admin_level > 1 %}
<script> <script>
document.addEventListener('click', function (e) { document.addEventListener('click', function (e) {
if (!e.target.classList.contains('del')) { if (!e.target.classList.contains('del')) {
for (const btn in document.querySelectorAll('.delmsg:not(.d-none)')) { for (const btn of document.querySelectorAll('.delmsg:not(.d-none)')) {
btn.classList.add('d-none'); btn.classList.add('d-none');
btn.previousElementSibling.classList.remove('d-none'); btn.previousElementSibling.classList.remove('d-none');
} }
} }
}); });
</script> </script>
{% endif %}
</body> </body>