X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/abed657fbdeffbd33fba2dfba313d176d32b742e..0ef6354c95222a6da6db28bf1e6d536f5fae8282:/searchlocal.js diff --git a/searchlocal.js b/searchlocal.js index a14c8c0..512f07b 100644 --- a/searchlocal.js +++ b/searchlocal.js @@ -69,6 +69,7 @@ function filtertable(query, action) { query = match[2]; } +if (document.querySelector !== undefined) { if (query == '' && action == 'add') { // restore all columns if explicitly adding all ("+") filtercols(table, function(){return true}, 'add'); @@ -82,6 +83,7 @@ function filtertable(query, action) { } return filtercols(table, match, action || 'toggle'); } +} if (/^[A-Z0-9 ]{2,}$/.test(query)) { // category title if all uppercase @@ -125,6 +127,7 @@ function prependsearch(target) { 'form', { id: 'search', 'class': 'aside', + 'className': 'aside', // msie onsubmit: "filtertable(this.q.value); this.q.value = ''; return false" }, [