aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-06-21 18:07:19 +0000
committerMario <mario@mariovavti.com>2021-06-21 18:07:19 +0000
commit7da23603ecb002b862e8fcb0865e23a60188a788 (patch)
tree7787650848421bbb7f898b318dee121fd47cb35f
parentafb4ae21090cd54538d37bf1f78b1606627d5e3c (diff)
downloadvolse-hubzilla-7da23603ecb002b862e8fcb0865e23a60188a788.tar.gz
volse-hubzilla-7da23603ecb002b862e8fcb0865e23a60188a788.tar.bz2
volse-hubzilla-7da23603ecb002b862e8fcb0865e23a60188a788.zip
fiÃlter children by tt-filter-active class instead of visibility selector to omit reload loop in mobile view where notifications ar not visible while off-canvas
-rw-r--r--view/tpl/notifications_widget.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 54008b397..f7a429749 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -334,7 +334,7 @@
}
// load more notifications if visible notifications count becomes low
- if(sse_type && sse_offset != -1 && $('#nav-' + sse_type + '-menu').children(':visible').length < 15) {
+ if(sse_type && sse_offset != -1 && $('#nav-' + sse_type + '-menu').children(':not(.tt-filter-active)').length < 15) {
sse_bs_notifications(sse_type, false, true);
}
@@ -479,7 +479,7 @@
{{$no_notifications}}<span class="jumping-dots"><span class="dot-1">.</span><span class="dot-2">.</span><span class="dot-3">.</span></span>
</div>
<div id="nav-notifications-template" rel="template">
- <a class="list-group-item text-decoration-none text-darkclearfix notification {6}" href="{0}" title="{13}" data-b64mid="{7}" data-notify_id="{8}" data-thread_top="{9}" data-contact_name="{2}" data-contact_addr="{3}" data-when="{5}">
+ <a class="list-group-item text-decoration-none text-dark clearfix notification {6}" href="{0}" title="{13}" data-b64mid="{7}" data-notify_id="{8}" data-thread_top="{9}" data-contact_name="{2}" data-contact_addr="{3}" data-when="{5}">
<img class="menu-img-3" data-src="{1}" loading="lazy">
<div class="contactname"><span class="text-dark font-weight-bold">{2}</span> <span class="text-muted">{3}</span></div>
<span class="text-muted">{4}</span><br>