sneed
parent
c0cb68e04a
commit
cab9ff1f4c
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
post_comment=function(fullname){
|
post_comment=function(fullname){
|
||||||
|
|
||||||
|
|
||||||
var form = new FormData();
|
var form = new FormData();
|
||||||
|
@ -36,9 +36,9 @@ post_comment=function(fullname){
|
||||||
|
|
||||||
document.getElementById('save-reply-to-'+fullname).classList.add('disabled');
|
document.getElementById('save-reply-to-'+fullname).classList.add('disabled');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
herald_comment=function(bid,cid){
|
herald_comment=function(bid,cid){
|
||||||
|
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
|
@ -64,9 +64,9 @@ herald_comment=function(bid,cid){
|
||||||
}
|
}
|
||||||
xhr.send(form)
|
xhr.send(form)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
comment_edit=function(id){
|
comment_edit=function(id){
|
||||||
|
|
||||||
var commentError = document.getElementById("comment-error-text");
|
var commentError = document.getElementById("comment-error-text");
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ comment_edit=function(id){
|
||||||
}
|
}
|
||||||
xhr.send(form)
|
xhr.send(form)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
block_user=function() {
|
block_user=function() {
|
||||||
|
|
|
@ -1,3 +1,18 @@
|
||||||
|
<script>
|
||||||
|
$('.text-expand').click(function(event){
|
||||||
|
if (event.which != 1) {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
id=$(this).data('id');
|
||||||
|
|
||||||
|
|
||||||
|
$('#post-text-'+id).toggleClass('d-none');
|
||||||
|
$('.text-expand-icon-'+id).toggleClass('fa-expand-alt');
|
||||||
|
$('.text-expand-icon-'+id).toggleClass('fa-compress-alt');
|
||||||
|
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
{% for p in listing %}
|
{% for p in listing %}
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue