Permalink
Browse files

More Safari appeasement

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent f57367c commit 23b2abe3135e255dc10fb7ca8d6213700d0a2f28 @dhh dhh committed Feb 6, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -145,7 +145,7 @@ def submit_tag(value = "Save changes", options = {})
"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

0 comments on commit 23b2abe

Please sign in to comment.