This project is archived and is in readonly mode.

#6008 ✓duplicate
Andrey A.I. Sitnik

[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

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>

Attachments

Pages