forked from rDrama/rDrama
1
0
Fork 0

back to snake_case

master
Aevann 2023-01-21 13:48:27 +02:00
parent 51b0952b56
commit 24f6436b8f
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ function comment_edit(id){
xhr[0].send(xhr[1]); xhr[0].send(xhr[1]);
} }
function postComment(fullname, hide){ function post_comment(fullname, hide){
const btn = document.getElementById('save-reply-to-'+fullname) const btn = document.getElementById('save-reply-to-'+fullname)
const textArea = document.getElementById('reply-form-body-'+fullname) const textArea = document.getElementById('reply-form-body-'+fullname)
btn.disabled = true btn.disabled = true

View File

@ -133,7 +133,7 @@
</label> </label>
{% endif %} {% endif %}
</div> </div>
<button type="button" id="save-reply-to-{{target_fullname}}" form="reply-to-{{target_fullname}}" class="btn btn-primary text-whitebtn ml-auto fl-r" data-nonce="{{g.nonce}}" data-onclick="postComment('{{target_fullname}}', '{{hide}}');remove_dialog();">Comment</button> <button type="button" id="save-reply-to-{{target_fullname}}" form="reply-to-{{target_fullname}}" class="btn btn-primary text-whitebtn ml-auto fl-r" data-nonce="{{g.nonce}}" data-onclick="post_comment('{{target_fullname}}', '{{hide}}');remove_dialog();">Comment</button>
{% if enable_cancel_button %} {% if enable_cancel_button %}
<button type="button" data-nonce="{{g.nonce}}" data-onclick="remove_dialog()" data-toggleelement="reply-to-{{target_fullname}}" data-toggleattr="d-none" class="btn btn-link text-muted ml-auto fl-r mr-3">Cancel</button> <button type="button" data-nonce="{{g.nonce}}" data-onclick="remove_dialog()" data-toggleelement="reply-to-{{target_fullname}}" data-toggleattr="d-none" class="btn btn-link text-muted ml-auto fl-r mr-3">Cancel</button>
{% endif %} {% endif %}