diff options
author | Jochen Topf <jochen@topf.org> | 2014-05-18 22:08:28 +0200 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-05-18 22:08:28 +0200 |
commit | 19e5943636ade0f6dc1767005f13c6470bbfa96e (patch) | |
tree | 963234b573bf87e4cbe7684ee7554515847c44a3 /web/views | |
parent | 7a944d65082af044888e3c38093bfadf0d0dbf3d (diff) | |
download | taginfo-19e5943636ade0f6dc1767005f13c6470bbfa96e.tar taginfo-19e5943636ade0f6dc1767005f13c6470bbfa96e.tar.gz |
Disable search when search field is empty.
Diffstat (limited to 'web/views')
-rw-r--r-- | web/views/layout.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/views/layout.erb b/web/views/layout.erb index 36817a3..1596ffa 100644 --- a/web/views/layout.erb +++ b/web/views/layout.erb @@ -22,7 +22,7 @@ <% end %> </select> </form> - <form action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form> + <form id="search_form" action="/search"><input type="text" id="search" name="q" value="<%= h(params[:q]) %>"/></form> </div> <div id="header_logo"> <a href="/"><img width="49" height="49" src="<%= TaginfoConfig.get('instance.icon', '/img/logo/world.png') %>" alt="taginfo"/></a> |