remove filename when commenting

master
Aevann1 2022-08-05 22:00:16 +02:00
parent ad3ca4eb12
commit c8ea663833
2 changed files with 3 additions and 1 deletions

View File

@ -191,6 +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>';
}
else {
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];
@ -250,6 +251,7 @@ function post_comment(fullname, hide){
document.getElementById('reply-form-body-'+fullname).value = ''
document.getElementById('form-preview-'+fullname).innerHTML = ''
document.getElementById('filename-show-reply-' + fullname).innerHTML = '<i class="fas fa-file"></i>';
}
else {
if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"];

View File

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