aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-02-22 13:52:18 +0000
committerfrancis <francis>2008-02-22 13:52:18 +0000
commit1ea049851df09f0865bab7e4e000ffd71a877b20 (patch)
tree8c3fb40e8a4c1d623539f179de131caf31c8c011
parent71db1912d119ae012a1567c8e55bb393ae6408da (diff)
Comments
-rw-r--r--app/views/request/frontpage.rhtml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/request/frontpage.rhtml b/app/views/request/frontpage.rhtml
index de955e6e2..508f5105c 100644
--- a/app/views/request/frontpage.rhtml
+++ b/app/views/request/frontpage.rhtml
@@ -16,6 +16,7 @@
<label for="public_body_query">Find the public body you would like information from:</label>
</p>
+ <!-- Autocomplete field, which submits form when user picks entry -->
<div>
<%= text_field_with_auto_complete 'public_body', 'query', {}, { :skip_style => true, :frequency => 0.1,
:after_update_element =>
@@ -28,11 +29,12 @@
Type to search e.g. Health, Business, Scotland
</div>
+ <!-- Show search button if javascript isn't there -->
<p id="public_body_query_button">
<%= submit_tag "Search" %>
</p>
<script type="text/javascript">
- Element.toggle('public_body_query_button')
+ Element.toggle('public_body_query_button')
</script>
<% if @public_bodies.size > 0 %>