forked from rDrama/rDrama
add confirmation for chat msg deletion
parent
41212779a9
commit
56a7347fc1
|
@ -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'
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue