Martin Troels "DarkFox" Eberhardt
Not a member
Martin Troels "DarkFox" Eberhardt's latest activity
Monday, April 04 2011
6669
UJS-prototype: :confirm does not work on a button_to
was updated
in Ruby on Rails
-
Martin Troels "DarkFox" Eberhardt commented at 11:56 AMThis 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(...
-
Martin Troels "DarkFox" Eberhardt created the ticket at 11:47 AMThis 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 'confir...