From 779ace09bfd2dd80d07994f317ba016d1059f0f3 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 24 Aug 2013 14:49:19 +0000 Subject: [PATCH] search by user & remove debug output --- public/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index 5b2e06e..d6155a2 100644 --- a/public/script.js +++ b/public/script.js @@ -11,8 +11,8 @@ function search(q) function searchNotifies(q) { var notifies = document.getElementById('notifies'); for (var i=1, row; row=notifies.rows[i]; i++) { - console.log(row); - if(row.cells[3].innerHTML.indexOf(q) == -1) { + if(row.cells[3].innerHTML.indexOf(q) == -1 && + row.cells[2].innerHTML.indexOf(q) == -1) { row.style.display = 'none'; } else { row.style.display = '';