From 56a7347fc1317c3e7e2a8f9e4e29b9e2f9182fcf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 14 Sep 2022 13:25:00 +0200 Subject: [PATCH] add confirmation for chat msg deletion --- files/assets/js/bootstrap.js | 2 +- files/templates/chat.html | 7 ++++++- files/templates/util/assetcache.html | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/files/assets/js/bootstrap.js b/files/assets/js/bootstrap.js index fa341a977..30a80beda 100644 --- a/files/assets/js/bootstrap.js +++ b/files/assets/js/bootstrap.js @@ -305,7 +305,7 @@ function changename(s1,s2) { function showmore() { const btn = this.event.target - const div = btn.parentElement.nextSibling + const div = btn.parentElement.nextElementSibling div.classList.toggle('d-none') if (div.classList.contains('d-none')) btn.innerHTML = 'SHOW MORE' diff --git a/files/templates/chat.html b/files/templates/chat.html index 28a5b73fd..114159da6 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -147,7 +147,12 @@ {% if v.admin_level > 1 %} - + + {% endif %} diff --git a/files/templates/util/assetcache.html b/files/templates/util/assetcache.html index 21873ad80..341713121 100644 --- a/files/templates/util/assetcache.html +++ b/files/templates/util/assetcache.html @@ -16,7 +16,7 @@ set CACHE_VER = { 'css/win98.css': 4007, 'js/award_modal.js': 4001, - 'js/bootstrap.js': 4005, + 'js/bootstrap.js': 4006, 'js/category_modal.js': 4000, 'js/comments_admin.js': 4000, 'js/comments_v.js': 4002,