aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-09-01 21:27:59 +0200
committerMario Vavti <mario@mariovavti.com>2017-09-01 21:27:59 +0200
commite935473c5c05a40194c110fbb024825a30ca5a4b (patch)
tree0795a3d546c8294d2f14a64e2d3e206cbe4b8e05 /view/js
parent3af3b36db3ef1ab0f8b5987a13d9adca482d0952 (diff)
downloadvolse-hubzilla-e935473c5c05a40194c110fbb024825a30ca5a4b.tar.gz
volse-hubzilla-e935473c5c05a40194c110fbb024825a30ca5a4b.tar.bz2
volse-hubzilla-e935473c5c05a40194c110fbb024825a30ca5a4b.zip
add combined index for item.uid and item.item_unseen. this speeds up notifications by a magnitude.
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 41be3da59..531f999f9 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -281,7 +281,7 @@ function closeMenu(theID) {
function markRead(notifType) {
$.get('ping?f=&markRead='+notifType);
if(timer) clearTimeout(timer);
- $('#' + notifType + '-update').html('');
+ $('.' + notifType + '-button').hide();
timer = setTimeout(NavUpdate,2000);
}
@@ -446,13 +446,13 @@ function NavUpdate() {
if(data.network == 0) {
data.network = '';
- $('.net-update, .net-button').hide();
+ $('.network-update, .network-button').hide();
document.title = savedTitle;
} else {
- $('.net-update, .net-button').show();
+ $('.network-update, .network-button').show();
document.title = '(' + data.network + ') ' + savedTitle;
}
- $('.net-update').html(data.network);
+ $('.network-update').html(data.network);
if(data.pubs == 0) {
data.pubs = '';