aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-09 14:06:59 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-09 14:06:59 +0100
commit5f229d81e9aaac0e0d82091d2d9089f5fb34bfe8 (patch)
tree35d6c83d72a2c6590d6a8c48b93532ca8fe001e5 /view
parentcb70192f36816a0f642af7176932a431982fe376 (diff)
downloadvolse-hubzilla-5f229d81e9aaac0e0d82091d2d9089f5fb34bfe8.tar.gz
volse-hubzilla-5f229d81e9aaac0e0d82091d2d9089f5fb34bfe8.tar.bz2
volse-hubzilla-5f229d81e9aaac0e0d82091d2d9089f5fb34bfe8.zip
use distinct in channel item query and minor notification cache improvement
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 02b0f125c..4a2bae802 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -357,6 +357,7 @@ function closeMenu(theID) {
function markRead(notifType) {
$.get('ping?f=&markRead='+notifType);
$('.' + notifType + '-button').hide();
+ sessionStorage.removeItem(notifType + '_notifications_cache');
if(timer) clearTimeout(timer);
timer = setTimeout(updateInit,2000);
}
@@ -436,6 +437,7 @@ function handleNotifications(data) {
if(item == 0) {
$('.' + index + '-button').fadeOut();
+ sessionStorage.removeItem(index + '_notifications_cache');
} else {
$('.' + index + '-button').fadeIn();
$('.' + index + '-update').html(item);