aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/search.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-08-14 21:43:09 -0700
committerAlex Yatskov <alex@foosoft.net>2017-08-14 21:43:09 -0700
commitbdf231082f4b4ca7c4c90d8b0cd40b6c4201723d (patch)
treeb378fa497e850c85145b241541edcace45324ca1 /ext/bg/js/search.js
parent82863cd86156d48b9f18dc10a560bedb82641862 (diff)
lots of fixes to backend
Diffstat (limited to 'ext/bg/js/search.js')
-rw-r--r--ext/bg/js/search.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js
index 87f50c32..54cda8ec 100644
--- a/ext/bg/js/search.js
+++ b/ext/bg/js/search.js
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2016 Alex Yatskov <alex@foosoft.net>
+ * Copyright (C) 2016-2017 Alex Yatskov <alex@foosoft.net>
* Author: Alex Yatskov <alex@foosoft.net>
*
* This program is free software: you can redistribute it and/or modify
@@ -41,9 +41,8 @@ class DisplaySearch extends Display {
}
async onSearch(e) {
- e.preventDefault();
-
try {
+ e.preventDefault();
this.intro.slideUp();
const {length, definitions} = await apiTermsFind(this.query.val());
super.termsShow(definitions, await apiOptionsGet());