From 9584cf9a679fbd6ae675850c7df7ab0d61d4cd81 Mon Sep 17 00:00:00 2001
From: Kyle Drake
Date: Thu, 23 Oct 2014 20:06:03 -0700
Subject: [PATCH] fix autosubmit for typeahead
---
views/layout.erb | 2 ++
views/surf.erb | 10 +++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/views/layout.erb b/views/layout.erb
index 361f5139..43f09dab 100644
--- a/views/layout.erb
+++ b/views/layout.erb
@@ -68,6 +68,8 @@
callback(suggestionObjects)
})
}
+ }).on('typeahead:selected', function(e) {
+ e.target.form.submit()
})
@@ -144,7 +149,8 @@
@@ -210,6 +216,8 @@
callback(suggestionObjects)
})
}
+ }).on('typeahead:selected', function(e) {
+ e.target.form.submit()
})
function toggleFollow(id) {