fix comment editting bug

master
Aevann1 2022-08-06 16:04:34 +02:00
parent d99c77cba9
commit d1cb115ada
2 changed files with 3 additions and 3 deletions

View File

@ -191,7 +191,7 @@ function comment_edit(id){
commentForm.innerHTML = data["comment"].replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '')
document.getElementById('cancel-edit-'+id).click()
bs_trigger(commentForm);
document.getElementById('filename-show-reply-t2_' + id).innerHTML = '<i class="fas fa-file"></i>';
document.getElementById('filename-edit-reply-' + id).innerHTML = '<i class="fas fa-file"></i>';
}
else {
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];
@ -201,7 +201,7 @@ function comment_edit(id){
setTimeout(() => {
btn.disabled = false;
btn.classList.remove('disabled');
}, 2000);
}, 1000);
}
xhr.send(form)
}

View File

@ -864,7 +864,7 @@
{% if v %}
<script src="{{asset('js/marked.js')}}"></script>
<script src="/assets/js/comments_v.js?v=288"></script>
<script src="/assets/js/comments_v.js?v=289"></script>
{% endif %}
<script src="/assets/js/clipboard.js?v=250"></script>