mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-09-22 03:52:21 -04:00
No automatic search when the prefix is empty
This commit is contained in:
parent
1509769e9f
commit
8b21d52b92
@ -169,7 +169,13 @@ define(function(require) {
|
||||
if(window.timeoutKeyUpPrefix) {
|
||||
window.clearTimeout(window.timeoutKeyUpPrefix);
|
||||
}
|
||||
window.timeoutKeyUpPrefix = window.setTimeout("document.getElementById('searchTitles').click()",500);
|
||||
window.timeoutKeyUpPrefix = window.setTimeout(function() {
|
||||
var prefix = $("#prefix").val();
|
||||
if (prefix && prefix.length>0) {
|
||||
$('#searchTitles').click();
|
||||
}
|
||||
}
|
||||
,500);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user