Continuous application of query focus prevents rapid entry due to update on
each key press. Ensure at most 1 request every 300ms after first keyup.
function filtercell(el, set, action) {
switch (action) {
case 'focus':
function filtercell(el, set, action) {
switch (action) {
case 'focus':
}
function filtertable(query, action) {
}
function filtertable(query, action) {
+ filterupdate = undefined;
+ if (query === undefined) query = document.getElementById('search').q.value;
var table = document.getElementsByTagName('TABLE')[0];
if (!action) {
var table = document.getElementsByTagName('TABLE')[0];
if (!action) {
newelement('input', {
type: 'search',
name: 'q',
newelement('input', {
type: 'search',
name: 'q',
- onkeyup: "filtertable(this.value, 'focus')",
+ onkeyup: "if (!filterupdate) filterupdate = "
+ + "window.setTimeout(filtertable, 300, undefined, 'focus')",
}),
newelement('input', {
type: 'button',
}),
newelement('input', {
type: 'button',