From 23b2abe3135e255dc10fb7ca8d6213700d0a2f28 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 6 Feb 2007 20:29:15 +0000 Subject: More Safari appeasement git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_view') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index df351e453c..342c457917 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -145,7 +145,7 @@ module ActionView "this.disabled=true", "this.value='#{disable_with}'", "#{options["onclick"]}", - "return (this.form.onsubmit ? this.form.onsubmit() : this.form.submit())", + "return (this.form.onsubmit ? (this.form.onsubmit() ? this.form.submit() : false) : this.form.submit())", ].join(";") end -- cgit v1.2.3