aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/search.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/search.js')
-rw-r--r--public/javascripts/search.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/javascripts/search.js b/public/javascripts/search.js
index 8ae3043..7d80709 100644
--- a/public/javascripts/search.js
+++ b/public/javascripts/search.js
@@ -29,6 +29,10 @@ self.updateDom = function (selectedItem) {
document.body.classList.add('searched')
}
+self.focus = function () {
+ self._nodes.input.focus()
+}
+
self._handleSubmit = function (event) {
event.preventDefault()
self.submit()