dfg
This commit is contained in:
parent
4a69caec84
commit
65ee7ffbad
2 changed files with 4 additions and 2 deletions
|
@ -170,7 +170,8 @@ comment_edit=function(id){
|
|||
}
|
||||
|
||||
post_comment=function(fullname){
|
||||
document.getElementById('save-reply-to-'+fullname).classList.add('disabled');
|
||||
const btn = document.getElementById('save-reply-to-'+fullname)
|
||||
btn.classList.add('disabled');
|
||||
|
||||
var form = new FormData();
|
||||
|
||||
|
@ -194,6 +195,7 @@ post_comment=function(fullname){
|
|||
var myToast = new bootstrap.Toast(document.getElementById('toast-post-error'));
|
||||
myToast.show();
|
||||
document.getElementById("comment-error-text").textContent = "Error. Please try again later.";
|
||||
btn.classList.remove('disabled');
|
||||
}
|
||||
}
|
||||
xhr.send(form)
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
{% if v %}
|
||||
{% include "award_modal.html" %}
|
||||
<script src="/assets/js/comments_v.js?v=24"></script>
|
||||
<script src="/assets/js/comments_v.js?v=26"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue