Skip to content

ssoroka/prevent_doubleclick.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

include the js file in your project.

Now any link with a prevent_doubleclick class will behave!

prevents double clicks on anything that is sensitive to race conditions; especially checkouts, etc.  The link is re-enabled in 10 seconds in case the requests never completes, to allow the user to try again.

About

prevent double clicking of links with .prevent_doubleclick class, useful for links that are subject to race conditions on duplicate submit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published