Added :confirm option to link_to_remote just like link_to has #1082 [yrashk@fp.org.ua]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-04-13 05:21:37 +00:00
parent 908e9a17d8
commit 2ad8dc6a1f
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,7 @@
*SVN*
* Added :confirm option to link_to_remote just like link_to has #1082 [yrashk@fp.org.ua]
* Added minute_step as an option to select_minute (and the helpers that use it) to jump in larger increments than just 1 minute. At 15, it would return 0, 15, 30, 45 options #1085 [ordwaye@evergreen.edu]
* Fixed that an exception would be thrown when an empty form was submitted #1090 [jan@ulbrich-boerwang.de]

View File

@ -106,7 +106,8 @@ module ActionView
function = "#{options[:before]}; #{function}" if options[:before]
function = "#{function}; #{options[:after]}" if options[:after]
function = "if (#{options[:condition]}) { #{function}; }" if options[:condition]
function = "if (confirm('#{escape_javascript(options[:confirm])}')) { #{function}; }" if options[:confirm]
return function
end