aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-11 09:12:05 +0000
committerMario <mario@mariovavti.com>2021-10-11 09:12:05 +0000
commit29f3dc2fa351746f50b87cf7b147ab5055b79fa2 (patch)
tree36ac7c4941af669010e7684f77324be24b610bee /view
parentaa41b1675745b7f95f0cb190b75654ede4b340df (diff)
downloadvolse-hubzilla-29f3dc2fa351746f50b87cf7b147ab5055b79fa2.tar.gz
volse-hubzilla-29f3dc2fa351746f50b87cf7b147ab5055b79fa2.tar.bz2
volse-hubzilla-29f3dc2fa351746f50b87cf7b147ab5055b79fa2.zip
notifications_widget: fix regression hiding the #nav- * -sub element when there are no more notifications
Diffstat (limited to 'view')
-rw-r--r--view/tpl/notifications_widget.tpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl
index 3b75cea31..fcadf71e5 100644
--- a/view/tpl/notifications_widget.tpl
+++ b/view/tpl/notifications_widget.tpl
@@ -315,6 +315,7 @@
}
else {
$('.' + type + '-update').html('0');
+ $('#nav-' + type + '-sub').removeClass('show');
$('.' + type + '-button').fadeOut(function() {
sse_setNotificationsStatus();
});
@@ -490,9 +491,10 @@
var fcount = Number($('.' + n[1] + '-update').html());
fcount--;
$('.' + n[1] + '-update').html(fcount);
- if(fcount < 1)
+ if(fcount < 1) {
$('.' + n[1] + '-button').fadeOut();
-
+ $('#nav-' + n[1] + '-sub').removeClass('show');
+ }
var count = Number($(this).find('.bg-secondary').html());
count--;
$(this).find('.bg-secondary').html(count);