aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-04-04 09:47:56 +0100
committerGareth Rees <gareth@mysociety.org>2014-04-04 09:47:56 +0100
commitce8cb9ea92d43002262099e765cccd064d7ea522 (patch)
tree267efa0409e49f6264b0e2f27005661be49255ed
parent804398208f862aca334346c7ee03e85901af0f7d (diff)
Disable contact form submit after click
Users sometimes repeatedly click submit if the form takes a while to submit. This disables the submit button with a message so that users know the form is submitting.
-rw-r--r--app/views/help/contact.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/help/contact.html.erb b/app/views/help/contact.html.erb
index e8a5fec8c..d228aa3a5 100644
--- a/app/views/help/contact.html.erb
+++ b/app/views/help/contact.html.erb
@@ -93,7 +93,7 @@
<div class="form_button">
<%= hidden_field_tag(:submitted_contact_form, 1) %>
- <%= submit_tag "Send message to the charity" %>
+ <%= submit_tag "Send message to the charity", :disable_with => "Sending..." %>
&lt;-- we run this site, not the Government!
</div>