fix minor console error
parent
38db199123
commit
c1c6c06547
|
@ -273,7 +273,7 @@ socket.on('delete', function(text) {
|
|||
})
|
||||
|
||||
document.addEventListener('click', function (e) {
|
||||
if (e.target.classList.contains('fa-trash-alt')) {
|
||||
if (e.target.classList.contains('delconfirm')) {
|
||||
e.target.nextElementSibling.classList.remove('d-none');
|
||||
e.target.classList.add('d-none');
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
<span class="text d-none">{% if m %}{{m['text']}}{% endif %}</span>
|
||||
<i class="quote btn fas fa-reply ml-auto" data-nonce="{{g.nonce}}" data-onclick="quote(this)"></i>
|
||||
{% if v.admin_level > 1 %}
|
||||
<i class="btn del fas fa-trash-alt"></i>
|
||||
<i class="btn del delconfirm fas fa-trash-alt"></i>
|
||||
<i class="btn d-none del delmsg fas fa-trash-alt text-danger" data-nonce="{{g.nonce}}" data-onclick="del(this)"></i>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue