This project is archived and is in readonly mode.
[PATCH] Prevent double clicking
Reported by Andrey A.I. Sitnik | November 18th, 2010 @ 09:05 PM
Some very strange users make double click on links. Or they
click, but page is loading and didn’t change, so they click
again. Because on every click new <form>
will be
created, double clicking creates two requests. It’s very bad,
because data-method
used in POST/PUT/DELETE
modification requests, for example user will pay twice.
This patch blocks clicking on a[data-method]
, while
it’s already submiting.
Comments and changes to this ticket
-
Andrey A.I. Sitnik November 18th, 2010 @ 09:06 PM
- Tag changed from jquery-ujs to jquery-ujs, patch
-
Andrey A.I. Sitnik November 19th, 2010 @ 11:39 PM
- Assigned user set to José Valim
-
Andrey A.I. Sitnik November 19th, 2010 @ 11:39 PM
- Title changed from Prevent double clicking to [PATCH] Prevent double clicking
-
José Valim November 20th, 2010 @ 12:10 AM
- Assigned user changed from José Valim to Neeraj Singh
- Importance changed from to Low
-
Neeraj Singh November 29th, 2010 @ 04:26 PM
- State changed from new to duplicate
Closing this ticket since same ticket has been opened on jquery-ujs issues list. That ticket has been updated with my comments.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>