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() }) diff --git a/views/surf.erb b/views/surf.erb index 3b8b6120..eb51e238 100644 --- a/views/surf.erb +++ b/views/surf.erb @@ -122,6 +122,11 @@ #top-bar .invisible a { color: #3B3B3B; } + + .hidden { + display:none!important; + visibility:hidden + } @@ -144,7 +149,8 @@
  • - + +
  • @@ -210,6 +216,8 @@ callback(suggestionObjects) }) } + }).on('typeahead:selected', function(e) { + e.target.form.submit() }) function toggleFollow(id) {