Skip to content

disable registration submit button after 1 click #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/views/users/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@
/ =form.label :receive_newsletter, 'Receive infrequent but relevant updates'.html_safe
%p.neverpost
We respect the sanctity of your email and share your dislike for spam and unnecessarily frequent newsletters.
=follow_coderwall_on_twitter
= follow_coderwall_on_twitter
to stay up to date with updates from coderwall.
.save
=submit_tag 'Finish', :class => 'button'
= submit_tag 'Finish', class: 'button',
data: { disable_with: "Submitted" }
.clear
.special-setting.already-signedup
%h4
Already have an account? Try signing in again with
=link_to('GitHub,', '/auth/github', :rel => 'nofollow')
=link_to('Twitter,', '/auth/twitter', :rel => 'nofollow')
or
=link_to('LinkedIn', '/auth/linkedin', :rel => 'nofollow')
=link_to('LinkedIn', '/auth/linkedin', :rel => 'nofollow')