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,6 +1,4 @@
{{$live_update nofilter}}
{{foreach $threads as $thread}}
<div id="tread-wrapper-{{$thread.id}}" class="tread-wrapper">
{{foreach $thread.items as $item}}
@ -18,7 +16,7 @@
{{/foreach}}
</div>
{{/foreach}}
{{if !$update}}
<div id="conversation-end"></div>
{{if $dropping}}
@ -28,3 +26,4 @@
</div>
<div id="item-delete-selected-end"></div>
{{/if}}
{{/if}}

View file

@ -1,10 +1,8 @@
{{$live_update nofilter}}
{{foreach $threads as $thread}}
{{include file="{{$thread.template}}" item=$thread}}
{{/foreach}}
{{if !$update}}
<div id="conversation-end"></div>
{{if $dropping}}
@ -15,3 +13,4 @@
<img id="item-delete-selected-rotator" class="like-rotator" src="images/rotator.gif" style="display: none;" />
<div id="item-delete-selected-end"></div>
{{/if}}
{{/if}}