diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-06 20:29:15 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-02-06 20:29:15 +0000 |
commit | 23b2abe3135e255dc10fb7ca8d6213700d0a2f28 (patch) | |
tree | 638f96a56e7ef7a462535feb52d8ea9ee7815a43 | |
parent | f57367c832a52d7d0c8540eb96fc1c67600f693a (diff) | |
download | rails-23b2abe3135e255dc10fb7ca8d6213700d0a2f28.tar.gz rails-23b2abe3135e255dc10fb7ca8d6213700d0a2f28.tar.bz2 rails-23b2abe3135e255dc10fb7ca8d6213700d0a2f28.zip |
More Safari appeasement
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-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 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 |