forked from MarseyWorld/MarseyWorld
fix wrong syntax
parent
af2b69d7bb
commit
c3c7b20ccd
|
@ -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>
|
||||||
|
|
||||||
<script>
|
{% if v.admin_level > 1 %}
|
||||||
document.addEventListener('click', function (e) {
|
<script>
|
||||||
if (!e.target.classList.contains('del')) {
|
document.addEventListener('click', function (e) {
|
||||||
for (const btn in document.querySelectorAll('.delmsg:not(.d-none)')) {
|
if (!e.target.classList.contains('del')) {
|
||||||
btn.classList.add('d-none');
|
for (const btn of document.querySelectorAll('.delmsg:not(.d-none)')) {
|
||||||
btn.previousElementSibling.classList.remove('d-none');
|
btn.classList.add('d-none');
|
||||||
|
btn.previousElementSibling.classList.remove('d-none');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
});
|
</script>
|
||||||
</script>
|
{% endif %}
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue