From 395cf8660752a3cf6f3ae47f222984303c83c4a6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 19 Jan 2018 20:53:22 +0100 Subject: make sure we deal with strings --- view/tpl/notifications_widget.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/notifications_widget.tpl b/view/tpl/notifications_widget.tpl index c30945524..a9b440396 100644 --- a/view/tpl/notifications_widget.tpl +++ b/view/tpl/notifications_widget.tpl @@ -72,7 +72,7 @@ $('#cn-{{$notification.type}}-input-clear').addClass('d-none'); }); $(document).on('input', '#cn-{{$notification.type}}-input', function(e) { - var val = $('#cn-{{$notification.type}}-input').val().toLowerCase(); + var val = $('#cn-{{$notification.type}}-input').val().toString().toLowerCase(); if(val) { $('#cn-{{$notification.type}}-only').addClass('active sticky-top'); @@ -84,7 +84,7 @@ } $("#nav-{{$notification.type}}-menu .notification").each(function(i, el){ - var cn = $(el).data('contact_name').toLowerCase(); + var cn = $(el).data('contact_name').toString().toLowerCase(); if(cn.indexOf(val) === -1) $(this).addClass('d-none'); @@ -132,7 +132,7 @@
- -
+ +
{{/if}}