search by user & remove debug output

This commit is contained in:
reality 2013-08-24 14:49:19 +00:00
parent 1d73115c33
commit 779ace09bf

View File

@ -11,8 +11,8 @@ function search(q)
function searchNotifies(q) { function searchNotifies(q) {
var notifies = document.getElementById('notifies'); var notifies = document.getElementById('notifies');
for (var i=1, row; row=notifies.rows[i]; i++) { 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'; row.style.display = 'none';
} else { } else {
row.style.display = ''; row.style.display = '';