aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-03 12:31:10 +0000
committerMario <mario@mariovavti.com>2020-05-03 12:31:10 +0000
commitfd48f9d173a7a76f9ecaedf078272f5fd3bdd706 (patch)
treea71c06a78aae6988dbdcac3bc99133c92f083416 /view/js/main.js
parent104c45f6e6550f723f976bd071bb0bd8e9aafce9 (diff)
downloadvolse-hubzilla-fd48f9d173a7a76f9ecaedf078272f5fd3bdd706.tar.gz
volse-hubzilla-fd48f9d173a7a76f9ecaedf078272f5fd3bdd706.tar.bz2
volse-hubzilla-fd48f9d173a7a76f9ecaedf078272f5fd3bdd706.zip
improve functionality of combined notification filters
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 5ba4282a6..49c0bed97 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -1807,7 +1807,7 @@ function sse_handleNotificationsItems(notifyType, data, replace, followup) {
$("#nav-" + notifyType + "-menu .notifications-autotime").timeago();
if($('#tt-' + notifyType + '-only').hasClass('active'))
- $('#nav-' + notifyType + '-menu [data-thread_top=false]').addClass('d-none');
+ $('#nav-' + notifyType + '-menu [data-thread_top=false]').addClass('tt-filter-active');
if($('#cn-' + notifyType + '-input').length) {
var filter = $('#cn-' + notifyType + '-input').val().toString().toLowerCase();
@@ -1818,9 +1818,9 @@ function sse_handleNotificationsItems(notifyType, data, replace, followup) {
var cn = $(el).data('contact_name').toString().toLowerCase();
var ca = $(el).data('contact_addr').toString().toLowerCase();
if(cn.indexOf(filter) === -1 && ca.indexOf(filter) === -1)
- $(el).addClass('d-none');
+ $(el).addClass('cn-filter-active');
else
- $(el).removeClass('d-none');
+ $(el).removeClass('cn-filter-active');
});
}
}