aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-22 12:12:53 +0000
committerMario <mario@mariovavti.com>2020-10-22 12:12:53 +0000
commit690874fc6e2cf399fe0808ba9d52ff67951266fd (patch)
tree275f8f4c92395688cc4d63f55e387e45baaa0dea /view
parent96de38a1f06193d674f8fe89cb1852e0e4abb4cf (diff)
downloadvolse-hubzilla-690874fc6e2cf399fe0808ba9d52ff67951266fd.tar.gz
volse-hubzilla-690874fc6e2cf399fe0808ba9d52ff67951266fd.tar.bz2
volse-hubzilla-690874fc6e2cf399fe0808ba9d52ff67951266fd.zip
fix minor regression
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index ffb869425..fb7bcb52f 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1826,11 +1826,13 @@ function sse_bs_notifications(e, replace, followup) {
$.ajax({
type: 'post',
url: '/sse_bs/' + sse_type + '/' + sse_offset,
- nquery: encodeURIComponent(cn_val)
+ nquery: encodeURIComponent(cn_val),
+ data: { sse_rmids }
}).done(function(obj) {
console.log('sse: bootstraping ' + sse_type);
console.log(obj);
sse_bs_active = false;
+ sse_rmids = [];
$("#nav-" + sse_type + "-loading").hide();
sse_offset = obj[sse_type].offset;
sse_handleNotifications(obj, replace, followup);
@@ -1913,7 +1915,7 @@ function sse_handleNotificationsItems(notifyType, data, replace, followup) {
$(data).each(function() {
// do not add a notification if it is already present
- if($('.notification[data-b64mid=\'' + this.b64mid + '\']').length)
+ if($('#nav-' + notifyType + '-menu .notification[data-b64mid=\'' + this.b64mid + '\']').length)
return true;
html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.addr,this.message,this.when,this.hclass,this.b64mid,this.notify_id,this.thread_top,this.unseen,this.private_forum, encodeURIComponent(this.mids), this.body);