aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-01-21 10:27:50 +0100
committerMario Vavti <mario@mariovavti.com>2018-01-21 10:27:50 +0100
commit1709dbd376af3171815f25b7055fb41da53924cb (patch)
treec962a68dbf7874e326f4ca268fe0183ac184ea12 /view/js
parent9937fea2e7021dd525549ae78e5aceba9ae85e4c (diff)
downloadvolse-hubzilla-1709dbd376af3171815f25b7055fb41da53924cb.tar.gz
volse-hubzilla-1709dbd376af3171815f25b7055fb41da53924cb.tar.bz2
volse-hubzilla-1709dbd376af3171815f25b7055fb41da53924cb.zip
make sure we deal with lowercase string in all situations
Diffstat (limited to 'view/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 b8c75f74a..034a520e7 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -893,14 +893,14 @@ function notify_popup_loader(notifyType) {
if($('#tt-' + notifyType + '-only').hasClass('active'))
$('#nav-' + notifyType + '-menu [data-thread_top=false]').hide();
- var filter = $('#cn-' + notifyType + '-input').val();
+ var filter = $('#cn-' + notifyType + '-input').val().toString().toLowerCase();
if(filter) {
$('#nav-' + notifyType + '-menu .notification').each(function(i, el){
var cn = $(el).data('contact_name').toString().toLowerCase();
if(cn.indexOf(filter) === -1)
- $(this).addClass('d-none');
+ $(el).addClass('d-none');
else
- $(this).removeClass('d-none');
+ $(el).removeClass('d-none');
});
}
});