diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-04-04 09:47:56 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-04-04 09:47:56 +0100 |
commit | ce8cb9ea92d43002262099e765cccd064d7ea522 (patch) | |
tree | 267efa0409e49f6264b0e2f27005661be49255ed | |
parent | 804398208f862aca334346c7ee03e85901af0f7d (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.erb | 2 |
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..." %> <-- we run this site, not the Government! </div> |