summaryrefslogtreecommitdiff
path: root/ext/bg/js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-25 15:59:33 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-25 15:59:33 -0700
commitb8d0788144974daab8d55c8de1af7515a291ba4f (patch)
tree32d778204049561b7f20c2e1a914ff6840340e86 /ext/bg/js
parent90eaae1725511bbc039f84f684b7b080e0fa2d44 (diff)
wip
Diffstat (limited to 'ext/bg/js')
-rw-r--r--ext/bg/js/display-window.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/display-window.js b/ext/bg/js/display-window.js
index 8c732ddd..ae97cd36 100644
--- a/ext/bg/js/display-window.js
+++ b/ext/bg/js/display-window.js
@@ -49,6 +49,10 @@ window.displayWindow = new class extends Display {
window.alert(`Error: ${error}`);
}
+ clearSearch() {
+ $('#query').focus().select();
+ }
+
onSearch(e) {
e.preventDefault();
$('#intro').slideUp();