From f57367c832a52d7d0c8540eb96fc1c67600f693a Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 6 Feb 2007 19:30:52 +0000 Subject: Safari requires an explicit submit git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6136 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/helpers') diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index 7f77788d41..df351e453c 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() : true)", + "return (this.form.onsubmit ? this.form.onsubmit() : this.form.submit())", ].join(";") end -- cgit v1.2.3