aboutsummaryrefslogtreecommitdiff
path: root/web/views
diff options
context:
space:
mode:
authorJochen Topf <jochen@topf.org>2014-05-18 22:08:28 +0200
committerJochen Topf <jochen@topf.org>2014-05-18 22:08:28 +0200
commit19e5943636ade0f6dc1767005f13c6470bbfa96e (patch)
tree963234b573bf87e4cbe7684ee7554515847c44a3 /web/views
parent7a944d65082af044888e3c38093bfadf0d0dbf3d (diff)
downloadtaginfo-19e5943636ade0f6dc1767005f13c6470bbfa96e.tar
taginfo-19e5943636ade0f6dc1767005f13c6470bbfa96e.tar.gz
Disable search when search field is empty.
Diffstat (limited to 'web/views')
-rw-r--r--web/views/layout.erb2
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>