Skip to content

Commit 894861d

Browse files
committed
Merge pull request #259 from codebender/stop_double_clicks_at_registration
disable registration submit button after 1 click
2 parents bf4310f + 09b6abd commit 894861d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/views/users/new.html.haml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@
3636
/ =form.label :receive_newsletter, 'Receive infrequent but relevant updates'.html_safe
3737
%p.neverpost
3838
We respect the sanctity of your email and share your dislike for spam and unnecessarily frequent newsletters.
39-
=follow_coderwall_on_twitter
39+
= follow_coderwall_on_twitter
4040
to stay up to date with updates from coderwall.
4141
.save
42-
=submit_tag 'Finish', :class => 'button'
42+
= submit_tag 'Finish', class: 'button',
43+
data: { disable_with: "Submitted" }
4344
.clear
4445
.special-setting.already-signedup
4546
%h4
4647
Already have an account? Try signing in again with
4748
=link_to('GitHub,', '/auth/github', :rel => 'nofollow')
4849
=link_to('Twitter,', '/auth/twitter', :rel => 'nofollow')
4950
or
50-
=link_to('LinkedIn', '/auth/linkedin', :rel => 'nofollow')
51+
=link_to('LinkedIn', '/auth/linkedin', :rel => 'nofollow')

0 commit comments

Comments
 (0)