add Section column to query scope
This commit is contained in:
parent
621aa054ca
commit
f56df6c2e0
1 changed files with 11 additions and 3 deletions
|
|
@ -67,9 +67,17 @@ function filterRows() {
|
|||
|
||||
// Loop through all table rows and hide those who don't match the search
|
||||
for (i = 0; i < tr.length; i++) {
|
||||
td = tr[i].getElementsByTagName("td")[0];
|
||||
if (td) {
|
||||
if (td.innerHTML.toUpperCase().indexOf(filter) > -1) {
|
||||
title = tr[i].getElementsByTagName("td")[0];
|
||||
section = tr[i].getElementsByTagName("td")[4];
|
||||
if (title) {
|
||||
if (title.innerHTML.toUpperCase().indexOf(filter) > -1) {
|
||||
tr[i].style.display = "";
|
||||
} else {
|
||||
tr[i].style.display = "none";
|
||||
}
|
||||
}
|
||||
if (section) {
|
||||
if (section.innerHTML.toUpperCase().indexOf(filter) > -1) {
|
||||
tr[i].style.display = "";
|
||||
} else {
|
||||
tr[i].style.display = "none";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue