aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-09-23 07:43:35 +0000
committerMario <mario@mariovavti.com>2020-09-23 09:44:37 +0200
commitca4a3c3cc0f5aff6b26e9e4583c7a3dd9c0db111 (patch)
tree8a3ce4f42e29da216089abbcdb6dd54a9bad0903 /view
parent743e575701622a2c672a7c0a84267ab20cba3854 (diff)
downloadvolse-hubzilla-ca4a3c3cc0f5aff6b26e9e4583c7a3dd9c0db111.tar.gz
volse-hubzilla-ca4a3c3cc0f5aff6b26e9e4583c7a3dd9c0db111.tar.bz2
volse-hubzilla-ca4a3c3cc0f5aff6b26e9e4583c7a3dd9c0db111.zip
fix notifications html not reset on markRead()
(cherry picked from commit dfad87f67414c200770e8d279a76d820ffe4a87b)
Diffstat (limited to 'view')
-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();