This project is archived and is in readonly mode.
UJS-prototype: :confirm does not work on a button_to
Reported by Martin Troels "DarkFox" Eberhardt | April 4th, 2011 @ 11:47 AM
This issue seems to stem from rails.js only checking for data-confirm on the element, and not on the button that is clicked.
Example code:
<%= button_to 'confirm', example_path, :confirm => 'Are you
sure?'%>
Comments and changes to this ticket
-
Martin Troels "DarkFox" Eberhardt April 4th, 2011 @ 11:56 AM
This is in Rails 3.0.3 with the latest prototype-UJS from github, by the way.
The action is in rails.js around 'document.on("submit"' and 'function allowAction(element)'
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>
People watching this ticket
- Nobody is watching this ticket.