make sure we deal with strings

This commit is contained in:
Mario Vavti
2018-01-19 20:53:22 +01:00
parent 4fb9989b4f
commit 395cf86607
2 changed files with 6 additions and 6 deletions

View File

@@ -896,7 +896,7 @@ function notify_popup_loader(notifyType) {
var filter = $('#cn-' + notifyType + '-input').val();
if(filter) {
$('#nav-' + notifyType + '-menu .notification').each(function(i, el){
var cn = $(el).data('contact_name').toLowerCase();
var cn = $(this).data('contact_name').toString().toLowerCase();
if(cn.indexOf(filter) === -1)
$(this).addClass('d-none');
else