Only auto update when there is content

This commit is contained in:
Michael 2020-10-20 20:43:51 +00:00
commit 1fc36c4470
8 changed files with 20 additions and 19 deletions

View file

@ -1,5 +1,4 @@
{{$live_update nofilter}}
{{foreach $threads as $thread}}
<div id="tread-wrapper-{{$thread.id}}" class="tread-wrapper">
{{foreach $thread.items as $item}}
@ -23,7 +22,7 @@
{{/foreach}}
</div>
{{/foreach}}
{{if !$update}}
<div id="conversation-end"></div>
{{if $dropping}}
@ -46,4 +45,4 @@
$('#item-'+id).animate(colWhite, 1000).animate(colShiny).animate(colWhite, 2000);
</script>
{{/if}}
{{/if}}

View file

@ -1,5 +1,4 @@
{{$live_update nofilter}}
{{foreach $threads as $thread}}
<div id="tread-wrapper-{{$thread.uriid}}" class="tread-wrapper {{if $thread.threaded}}threaded{{/if}} {{$thread.toplevel}} {{if $thread.toplevel}} h-entry {{else}} u-comment h-cite {{/if}} {{$thread.network}}">
@ -13,7 +12,7 @@
</div>
{{/foreach}}
{{if !$update}}
<div id="conversation-end"></div>
{{if $dropping}}
@ -37,4 +36,4 @@
$('#item-'+id).animate(colWhite, 1000).animate(colShiny).animate(colWhite, 2000);
</script>
{{/if}}
{{/if}}