vcxvxc
This commit is contained in:
parent
be63f7384d
commit
6c44398f30
2 changed files with 4 additions and 2 deletions
|
@ -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){
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue