diff options
author | Matthias Schulte <post@lupo49.de> | 2011-07-17 12:18:37 +0200 |
---|---|---|
committer | Matthias Schulte <post@lupo49.de> | 2011-07-17 12:18:37 +0200 |
commit | 8e5a3957cd8de15f48dc27e9c07dfe4033fd6997 (patch) | |
tree | e819b734e24a3fb1a40da50383dfbaf34ba3b1d6 /lib/scripts/qsearch.js | |
parent | 3f3f8d1d768a4996d5a2fcc0ce8715e455ce7cad (diff) | |
parent | 1e542e417725bb148253929fac9146832d978e45 (diff) | |
download | rpg-8e5a3957cd8de15f48dc27e9c07dfe4033fd6997.tar.gz rpg-8e5a3957cd8de15f48dc27e9c07dfe4033fd6997.tar.bz2 |
Merge remote branch 'upstream/master'
Diffstat (limited to 'lib/scripts/qsearch.js')
-rw-r--r-- | lib/scripts/qsearch.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/scripts/qsearch.js b/lib/scripts/qsearch.js index 97eaa7ef0..f83b7a5a1 100644 --- a/lib/scripts/qsearch.js +++ b/lib/scripts/qsearch.js @@ -14,6 +14,7 @@ var dw_qsearch = { $inObj: null, $outObj: null, + timer: null, /** * initialize the quick search @@ -55,8 +56,12 @@ var dw_qsearch = { dw_qsearch.$inObj.keyup( function() { + if(dw_qsearch.timer){ + window.clearTimeout(dw_qsearch.timer); + dw_qsearch.timer = null; + } dw_qsearch.clear_results(); - window.setTimeout(do_qsearch, 500); + dw_qsearch.timer = window.setTimeout(do_qsearch, 500); } ); |