From 079d8f402893dae8607bb7e272a6a038b840b4d2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 8 Sep 2005 17:54:16 +0000 Subject: Fixed that onclick would be overridden even when special features werent used git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/url_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 7ca1d0cd0b..2901d4f642 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -254,6 +254,8 @@ module ActionView "#{post_javascript_function}return false;" when popup popup_javascript_function(popup) + 'return false;' + else + html_options["onclick"] end end -- cgit v1.2.3