function filtercell(el, set, action) {
if (set === undefined) return;
function filtercell(el, set, action) {
if (set === undefined) return;
if (query == '' && action == 'add') {
// restore all columns if explicitly adding all ("+")
filtercols(table, function(){return true}, 'add');
if (query == '' && action == 'add') {
// restore all columns if explicitly adding all ("+")
filtercols(table, function(){return true}, 'add');
if (/^[A-Z0-9 ]{2,}$/.test(query)) {
// category title if all uppercase
if (/^[A-Z0-9 ]{2,}$/.test(query)) {
// category title if all uppercase
for (var name in attrlist)
el.setAttribute(name, attrlist[name]);
if (childlist) for (var i = 0; i < childlist.length; i++)
for (var name in attrlist)
el.setAttribute(name, attrlist[name]);
if (childlist) for (var i = 0; i < childlist.length; i++)
- onkeyup: "if (!filterupdate) filterupdate = "
- + "window.setTimeout(filtertable, 300, undefined, 'focus')",
+ onkeyup: "if (filtertoggles && !filterupdate) filterupdate = "
+ + "window.setTimeout(filtertable, 300, undefined, 'focus')"
- newelement('input', {type:'submit', value:'filter'}),
+ newelement('input', {type:'submit', value:'filter'})