Skip to content
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

KG - Prevent User From Multi-Clicking Step Links #9

Merged
merged 4 commits into from Jan 19, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/assets/javascripts/navigation.js.coffee
Expand Up @@ -25,6 +25,12 @@ $(document).ready ->
$(this).children().removeClass('hover')
)

$(document).on 'click', '.step-btn', (event) ->
if $(this).data('clicked')
event.preventDefault()
else
$(this).data('clicked', true)

# We dont want the extra handler on the submit button if we need to use the system
# satisfaction survey so that we can preventDefault the submit in system_satisfaction.js.coffee
if $('#use_system_satisfaction').val() != 'true'
Expand Down