use var instead of this

This commit is contained in:
Mario Vavti 2018-01-19 21:14:32 +01:00
parent db25f2024e
commit d6fc85f460

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 = $(this).data('contact_name').toString().toLowerCase();
var cn = $(el).data('contact_name').toString().toLowerCase();
if(cn.indexOf(filter) === -1)
$(this).addClass('d-none');
else