This commit is contained in:
Aevann1 2022-01-22 18:27:19 +02:00
parent be63f7384d
commit 6c44398f30
2 changed files with 4 additions and 2 deletions

View file

@ -72,8 +72,10 @@ function report_commentModal(id, author) {
function openReplyBox(id) { function openReplyBox(id) {
const element = document.getElementById(id); const element = document.getElementById(id);
const textarea = element.getElementsByTagName('textarea')[0]
if (window.getSelection) textarea.value = window.getSelection().toString();
element.classList.remove('d-none') element.classList.remove('d-none')
element.getElementsByTagName('textarea')[0].focus() textarea.focus()
} }
function toggleEdit(id){ function toggleEdit(id){

View file

@ -864,7 +864,7 @@
{% if v %} {% if v %}
<script src="/static/assets/js/marked.js?a=220"></script> <script src="/static/assets/js/marked.js?a=220"></script>
<script src="/static/assets/js/comments_v.js?a=220"></script> <script src="/static/assets/js/comments_v.js?a=221"></script>
{% endif %} {% endif %}
<script src="/static/assets/js/clipboard.js?a=220"></script> <script src="/static/assets/js/clipboard.js?a=220"></script>