This commit is contained in:
Aevann1 2021-07-21 13:21:26 +02:00
parent 073576114b
commit c3493ede84
2 changed files with 12 additions and 13 deletions

View file

@ -804,16 +804,3 @@ $('.expandable-image').click( function(event) {
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');
})

View file

@ -4,6 +4,18 @@
{% include "bootstrap.html" %}
<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');
})
// Text Formatting