1
Fork 0

Rollup merge of #21339 - thorncp:api-docs-search, r=alexcrichton

Increases the delay of the search box to 500ms after key up. I tried
adding a three character minimum for setting the delay, but didn't find
it very useful.

Should close #20095

@Jurily, your input is welcome!
This commit is contained in:
Barosl LEE 2015-01-21 02:16:48 +09:00
commit f836f1e412

View file

@ -635,7 +635,7 @@
$('.do-search').on('click', search);
$('.search-input').on('keyup', function() {
clearTimeout(keyUpTimeout);
keyUpTimeout = setTimeout(search, 100);
keyUpTimeout = setTimeout(search, 500);
});
// Push and pop states are used to add search results to the browser