sneed
This commit is contained in:
parent
bdcc5dfc28
commit
9c420b8a92
2 changed files with 13 additions and 15 deletions
|
@ -3,6 +3,19 @@
|
|||
<head>
|
||||
<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');
|
||||
|
||||
})
|
||||
|
||||
post_comment=function(fullname){
|
||||
|
||||
|
||||
|
|
|
@ -1,18 +1,3 @@
|
|||
<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 %}
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue