From 4b9cc80f66c95e091f303f9e30118b5487faf1d4 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 11 Dec 2018 12:08:22 +0100 Subject: [PATCH] Do not do an extra request to search book in the remote library. When doing a search in the library, we know for sure that the result will be a subset of the library we have (without query). So we can do the search locally (through the books we already have in cache) instead of doing another request. --- resources/texts/_contentManager.html | 2 +- src/contentmanager.cpp | 16 ++++------------ 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/resources/texts/_contentManager.html b/resources/texts/_contentManager.html index 9ced007..5b09ae9 100644 --- a/resources/texts/_contentManager.html +++ b/resources/texts/_contentManager.html @@ -83,7 +83,7 @@ function init() { futurCall = null; function setSearch(value) { clearTimeout(futurCall); - futurCall = setTimeout(function(){contentManager.setSearch(value)}, 200); + futurCall = setTimeout(function(){contentManager.setSearch(value)}, 100); }