sneed
This commit is contained in:
parent
e9ad5855ff
commit
bdcc5dfc28
3 changed files with 104 additions and 102 deletions
|
@ -961,16 +961,3 @@ $('.expandable-image').click( function(event) {
|
||||||
|
|
||||||
expandDesktopImage(url,url);
|
expandDesktopImage(url,url);
|
||||||
})
|
})
|
||||||
|
|
||||||
$('.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');
|
|
||||||
|
|
||||||
})
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue