aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-11-22 20:52:22 +0000
committerMario <mario@mariovavti.com>2019-11-22 20:52:22 +0000
commit73a0866ac4666e615742884a9eb3464c742f787b (patch)
tree49b168f7c270507328f0813fbbcbe673db2f197e /view/js
parentb62eb665c5ad12ec7bde6bace71a0ddbb6aac28d (diff)
downloadvolse-hubzilla-73a0866ac4666e615742884a9eb3464c742f787b.tar.gz
volse-hubzilla-73a0866ac4666e615742884a9eb3464c742f787b.tar.bz2
volse-hubzilla-73a0866ac4666e615742884a9eb3464c742f787b.zip
sse: fix a regression where not all appearances of an notification were looped through and fix format_notify() to not look for the parent item anymore
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 29a95d9b1..6516d5b0a 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -854,10 +854,13 @@ function updateConvItems(mode,data) {
console.log(nmids);
+ sse_mids = nmids;
+
nmids.forEach(function (nmid, index) {
- sse_mids.push(nmid);
+ //sse_mids.push(nmid);
if($('.notification[data-b64mid=\'' + nmid + '\']').length) {
$('.notification[data-b64mid=\'' + nmid + '\']').each(function() {
+ console.log(this);
var n = this.parentElement.id.split('-');
return sse_updateNotifications(n[1], nmid, true);
});
@@ -2146,6 +2149,4 @@ function sse_updateNotifications(type, mid, interactive) {
$('#nav-' + type + '-menu .notification[data-b64mid=\'' + mid + '\']').fadeOut();
- return false;
-
}