From 22ca47dcd1c7f88745fae8c661b169049fa767be Mon Sep 17 00:00:00 2001 From: Kevin Abel <kevin.abel.0@gmail.com> Date: Thu, 29 May 2014 17:01:59 -0500 Subject: [PATCH] Add try/catch to the search execute call to simulate search complete --- www/js/search.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/www/js/search.js b/www/js/search.js index a94e16e..92cee1a 100644 --- a/www/js/search.js +++ b/www/js/search.js @@ -182,7 +182,12 @@ if (track !== false) { trackQuery(q); } - activeSearch.execute(q); + try { + activeSearch.execute(q); + } catch (e) { + console.log(e); + queryComplete({root: activeSearch.root}); + } directorySearch.execute(q); $(wrapperMain).fadeIn(); }, -- GitLab