diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-06 19:30:52 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-06 19:30:52 +0000 |
commit | f57367c832a52d7d0c8540eb96fc1c67600f693a (patch) | |
tree | 5129ac457f0357782cf4d034db597df0f999d60a /actionpack/lib/action_view/helpers | |
parent | 06b1198736498f2ba97b5e0a38f3264d45201aeb (diff) | |
download | rails-f57367c832a52d7d0c8540eb96fc1c67600f693a.tar.gz rails-f57367c832a52d7d0c8540eb96fc1c67600f693a.tar.bz2 rails-f57367c832a52d7d0c8540eb96fc1c67600f693a.zip |
Safari requires an explicit submit
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |