From b55676d08914d58927b5503a1bfa283397cd6d44 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 07:33:45 +0000 Subject: New landing page HQ with separate views for direct messages, public/limited messages and starred messages if the feature is enabled --- view/tpl/notifications_widget.tpl | 455 +++++++++++++++++++++++++++++++++----- 1 file changed, 394 insertions(+), 61 deletions(-) (limited to 'view/tpl/notifications_widget.tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 1092bc155..0d922e416 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -1,9 +1,17 @@ -{{if $notifications}} @@ -199,4 +533,3 @@ {{/foreach}} -{{/if}} -- cgit v1.2.3 From a34bd3b013887786f5f958450b4823cfd00cd562 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 11:21:59 +0000 Subject: fix issue where notifications were not loaded if a filter was applied --- view/tpl/notifications_widget.tpl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'view/tpl/notifications_widget.tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index 0d922e416..54008b397 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -154,6 +154,10 @@ else { $('#nav-{{$notification.type}}-menu .notification[data-thread_top=false]').addClass('tt-filter-active'); $(this).addClass('active sticky-top'); + // load more notifications if visible notifications count is low + if(sse_type && sse_offset != -1 && $('#nav-' + sse_type + '-menu').children(':visible').length < 15) { + sse_bs_notifications(sse_type, false, true); + } } }); @@ -330,8 +334,7 @@ } // load more notifications if visible notifications count becomes low - if(sse_type && sse_offset != -1 && $('#nav-' + sse_type + '-menu').children().length < 15) { - sse_offset = 0; + if(sse_type && sse_offset != -1 && $('#nav-' + sse_type + '-menu').children(':visible').length < 15) { sse_bs_notifications(sse_type, false, true); } -- cgit v1.2.3 From 7da23603ecb002b862e8fcb0865e23a60188a788 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 21 Jun 2021 18:07:19 +0000 Subject: =?UTF-8?q?fi=C3=83lter=20children=20by=20tt-filter-active=20class?= =?UTF-8?q?=20instead=20of=20visibility=20selector=20to=20omit=20reload=20?= =?UTF-8?q?loop=20in=20mobile=20view=20where=20notifications=20ar=20not=20?= =?UTF-8?q?visible=20while=20off-canvas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/tpl/notifications_widget.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/tpl/notifications_widget.tpl') 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}}...