add confirmation for chat msg deletion

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-14 13:25:00 +02:00
parent 41212779a9
commit 56a7347fc1
3 changed files with 8 additions and 3 deletions

View File

@ -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'

View File

@ -147,7 +147,12 @@
<span class="text d-none"></span>
<button class="quote btn" onclick="quote(this)"><i class="fas fa-reply" aria-hidden="true"></i></button>
{% if v.admin_level > 1 %}
<button class="quote btn" onclick="del(this)"><i class="fas fa-trash-alt" aria-hidden="true"></i></button>
<button class="quote btn" onclick="this.nextElementSibling.classlist.remove('d-none')">
<i class="fas fa-trash-alt" aria-hidden="true"></i>
</button>
<button class="quote btn d-none" onclick="del(this)">
<i class="fas fa-trash-alt text-danger" aria-hidden="true"></i>
</button>
{% endif %}
</div>
</div>

View File

@ -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,