aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-09-23 07:43:35 +0000
committerMario <mario@mariovavti.com>2020-09-23 07:43:35 +0000
commitdfad87f67414c200770e8d279a76d820ffe4a87b (patch)
tree84daea8985bfcb2f82cbc61a11f6b5579f524046 /view/js
parentbe627c3f3aa7b4ab4834aff30fba79ee67b4fa50 (diff)
downloadvolse-hubzilla-dfad87f67414c200770e8d279a76d820ffe4a87b.tar.gz
volse-hubzilla-dfad87f67414c200770e8d279a76d820ffe4a87b.tar.bz2
volse-hubzilla-dfad87f67414c200770e8d279a76d820ffe4a87b.zip
fix notifications html not reset on markRead()
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 0e143bc99..29f7ed7ca 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -535,6 +535,8 @@ function closeMenu(theID) {
function markRead(notifType) {
$.get('ping?f=&markRead='+notifType);
$('.' + notifType + '-button').fadeOut(function() {
+ $("." + notifType + "-update").html('0');
+ $('#nav-' + notifType + '-menu').html('');
$('#nav-' + notifType + '-sub').removeClass('show');
sessionStorage.removeItem('notification_open');
sse_setNotificationsStatus();