bbb
This commit is contained in:
parent
b263555a36
commit
dce2551a12
2 changed files with 4 additions and 4 deletions
|
@ -119,7 +119,7 @@ function post_reply(id){
|
|||
xhr.onload=function(){
|
||||
if (xhr.status==200) {
|
||||
commentForm=document.getElementById('comment-form-space-'+id);
|
||||
commentForm.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '').replace('comment-collapse-desktop d-none d-md-block','d-none').replace('border-left: 2px solid','padding-left:0;border-left: 0px solid');
|
||||
commentForm.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '').replace('comment-collapse-desktop d-none d-md-block','d-none').replace('border-left: 2px solid','padding-left:0;border-left: 0px solid').replace(/this.dataset.src/g, 'this.src');
|
||||
}
|
||||
else {
|
||||
let data = JSON.parse(xhr.response)
|
||||
|
@ -144,7 +144,7 @@ function comment_edit(id){
|
|||
xhr.onload=function(){
|
||||
if (xhr.status==200) {
|
||||
commentForm=document.getElementById('comment-text-'+id);
|
||||
commentForm.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
|
||||
commentForm.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '').replace(/this.dataset.src/g, 'this.src');
|
||||
document.getElementById('cancel-edit-'+id).click()
|
||||
}
|
||||
else {
|
||||
|
@ -174,7 +174,7 @@ function post_comment(fullname){
|
|||
xhr.onload=function(){
|
||||
if (xhr.status==200) {
|
||||
commentForm=document.getElementById('comment-form-space-'+fullname);
|
||||
commentForm.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '');
|
||||
commentForm.innerHTML = xhr.response.replace(/data-src/g, 'src').replace(/data-cfsrc/g, 'src').replace(/style="display:none;visibility:hidden;"/g, '').replace(/this.dataset.src/g, 'this.src');
|
||||
}
|
||||
else {
|
||||
let data = JSON.parse(xhr.response)
|
||||
|
|
|
@ -848,7 +848,7 @@
|
|||
|
||||
{% if v %}
|
||||
<script src="/static/assets/js/marked.js?a=3"></script>
|
||||
<script src="/static/assets/js/comments_v.js?a=10"></script>
|
||||
<script src="/static/assets/js/comments_v.js?a=11"></script>
|
||||
{% endif %}
|
||||
|
||||
<script src="/static/assets/js/clipboard.js?a=3"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue