aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-12-02 09:58:54 +0000
committerMario <mario@mariovavti.com>2018-12-02 10:59:33 +0100
commitf13b1e8604746d9e3269f1678ca7ed6d1e7c5b6f (patch)
treef57bb9b495c9df2987ab67a01967f26ea6e5c8cd /view/js
parent52424b0f9c14b6f1c58d963df0479332520be4ef (diff)
downloadvolse-hubzilla-f13b1e8604746d9e3269f1678ca7ed6d1e7c5b6f.tar.gz
volse-hubzilla-f13b1e8604746d9e3269f1678ca7ed6d1e7c5b6f.tar.bz2
volse-hubzilla-f13b1e8604746d9e3269f1678ca7ed6d1e7c5b6f.zip
fix filtering by addr in handleNotificationsItems()
(cherry picked from commit f083c0cba10248926661db42d99d04b5eb7579e8)
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f4bfd413b..a69bcfa64 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -558,7 +558,8 @@ function handleNotificationsItems(notifyType, data) {
if(filter) {
$('#nav-' + notifyType + '-menu .notification').each(function(i, el){
var cn = $(el).data('contact_name').toString().toLowerCase();
- if(cn.indexOf(filter) === -1)
+ var ca = $(el).data('contact_addr').toString().toLowerCase();
+ if(cn.indexOf(filter) === -1 && ca.indexOf(filter) === -1)
$(el).addClass('d-none');
else
$(el).removeClass('d-none');