Permalink
Browse files

accept return on tag search input

  • Loading branch information...
r888888888 committed Oct 18, 2017
1 parent 8874b27 commit 3eae2e279a9f92b720d5bb5a8741df1a0a239a1a
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/views/posts/partials/common/_search.html.erb
@@ -37,6 +37,11 @@
$(e.target).attr('rows', rows + 1);
$(e.target).css("width", "100%");
});
$("#tags").keydown("return", function(e) {
$("#search-box form").submit();
e.preventDefault();
});
});
</script>
<% end %>

0 comments on commit 3eae2e2

Please sign in to comment.