Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Prevent double clicking

#6008

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.

Reported by Andrey A.I. Sitnik · November 18th, 2010 @ 09:05 PM

State: duplicate
Milestone: none
Assigned to: Neeraj Singh Neeraj Singh
Importance: Low

Activity

  1. Andrey A.I. Sitnik
    Andrey A.I. Sitnik
    • Tag changed from jquery-ujs to jquery-ujs, patch

    November 18th, 2010 @ 09:06 PM

  2. Andrey A.I. Sitnik
    Andrey A.I. Sitnik
    • Assigned user set to José Valim

    November 19th, 2010 @ 11:39 PM

  3. Andrey A.I. Sitnik
    Andrey A.I. Sitnik
    • Title changed from Prevent double clicking to [PATCH] Prevent double clicking

    November 19th, 2010 @ 11:39 PM

  4. José Valim
    José Valim
    • Assigned user changed from José Valim to Neeraj Singh
    • Importance changed from to Low

    November 20th, 2010 @ 12:10 AM

  5. Neeraj Singh
    Neeraj Singh
    • 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.

    https://github.com/rails/jquery-ujs/issues#issue/49

    November 29th, 2010 @ 04:26 PM