rails/rails — Issue #3251: link_to_function :confirm => 'Are you sure?' automaticaly skip confirmation
Author: PsychoPhobic
Created: 2011-10-08 06:52:32+00:00
State: open

Hi,

<%= link_to_function raw('Löschen'), "jQuery('#multi_destroy').submit();", :confirm => 'Are you sure?' %>
generates a link which results to :
Löschen

When clicking the link the window with "Are you sure?" is auto-confirmed after 1 second and executes
"jQuery('#multi_destroy').submit();"