aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-19 20:23:13 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-19 20:23:13 +0100
commit2047801b858d56ba72da0a430903890bea0130cd (patch)
treef399a183ad43bb8a5063de3b41dca9bcfb4911d4 /view/js
parent43992dc463575655a5767fcb1a8dcb18a1d4ffdf (diff)
downloadvolse-hubzilla-2047801b858d56ba72da0a430903890bea0130cd.tar.gz
volse-hubzilla-2047801b858d56ba72da0a430903890bea0130cd.tar.bz2
volse-hubzilla-2047801b858d56ba72da0a430903890bea0130cd.zip
updates 1201 and 1200 should return success for postgres. notifications: remove class show and session storage entry when we mark all notifications seen
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 4a2bae802..f6fe475d8 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -357,7 +357,9 @@ function closeMenu(theID) {
function markRead(notifType) {
$.get('ping?f=&markRead='+notifType);
$('.' + notifType + '-button').hide();
+ $('#nav-' + notifType + '-sub').removeClass('show');
sessionStorage.removeItem(notifType + '_notifications_cache');
+ sessionStorage.removeItem('notification_open');
if(timer) clearTimeout(timer);
timer = setTimeout(updateInit,2000);
}