diff options
author | francis <francis> | 2008-02-22 13:26:36 +0000 |
---|---|---|
committer | francis <francis> | 2008-02-22 13:26:36 +0000 |
commit | 0a1ede4a7f9407da47846502e8fafd58711489ea (patch) | |
tree | ccde3e7b5ed6c0ee77c937cd21adf139e445fd72 /app/controllers/request_controller.rb | |
parent | 80469a7a4bd074fa087d6f859c3ad7752b22a9a4 (diff) |
Make javascripty browsers jump when you click.
Links to contact us to add a body that is missing.
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index c669f0aaf..60d12e68d 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -4,7 +4,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: request_controller.rb,v 1.57 2008-02-22 01:58:36 francis Exp $ +# $Id: request_controller.rb,v 1.58 2008-02-22 13:26:36 francis Exp $ class RequestController < ApplicationController @@ -34,6 +34,7 @@ class RequestController < ApplicationController def frontpage # Public body search on the left @public_bodies = [] + @query_made = false if params[:public_body] and params[:public_body][:query] # Try and do exact match - redirect if it is made @public_body = PublicBody.find_by_name(params[:public_body][:query]) @@ -42,6 +43,7 @@ class RequestController < ApplicationController end # Otherwise use search engine to find public body @public_bodies = public_body_query(params[:public_body][:query]) + @query_made = true end # Get all successful requests for display on the right |