aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb@mysociety.org>2012-01-09 13:12:53 +0000
committerSeb Bacon <seb@mysociety.org>2012-01-09 13:12:53 +0000
commit91f05ba2a3adde2c113d32fa57d4b61125d1d6a9 (patch)
treeac4e259bbbcdaebc146e376db27cb2febd3e5752
parentc3a39907fcc879b56efc57bd0e7c180a241c7b6b (diff)
Scroll to top on click
When the name of a public authority is clicked, on the select_authority page, scroll to the top so the user can see the green Start button.
-rw-r--r--app/views/request/select_authority.rhtml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/request/select_authority.rhtml b/app/views/request/select_authority.rhtml
index 9aaa37f4d..0b1c65d13 100644
--- a/app/views/request/select_authority.rhtml
+++ b/app/views/request/select_authority.rhtml
@@ -17,6 +17,7 @@
$("#typeahead_response .head a").live('click', function() {
$("#authority_preview").load(this.href+" #public_body_show", function() {
$("#authority_preview").show();
+ $(window).scrollTop($("#banner").height());
$("#authority_preview #header_right").hide();
});
return false;