2011-11-25 15:44:18 +01:00
|
|
|
function search(q)
|
|
|
|
{
|
2013-10-29 22:39:26 +01:00
|
|
|
var quotes = document.getElementsByClassName('quotes');
|
|
|
|
for( var i in quotes )
|
|
|
|
{
|
|
|
|
if( quotes[i].innerHTML == undefined ) continue;
|
|
|
|
quotes[i].className = quotes[i].innerHTML.indexOf(q) == -1 ? 'quotes hidden' : 'quotes';
|
|
|
|
}
|
2011-11-25 15:44:18 +01:00
|
|
|
}
|
2013-08-24 16:46:38 +02:00
|
|
|
|
|
|
|
function searchNotifies(q) {
|
|
|
|
var notifies = document.getElementById('notifies');
|
|
|
|
for (var i=1, row; row=notifies.rows[i]; i++) {
|
2013-08-24 16:49:19 +02:00
|
|
|
if(row.cells[3].innerHTML.indexOf(q) == -1 &&
|
2013-08-24 19:53:16 +02:00
|
|
|
row.cells[2].innerHTML.indexOf(q) == -1 &&
|
|
|
|
row.cells[1].innerHTML.indexOf(q) == -1) {
|
2013-08-24 16:46:38 +02:00
|
|
|
row.style.display = 'none';
|
|
|
|
} else {
|
|
|
|
row.style.display = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|