Permalink
Browse files

Safari requires an explicit submit

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 06b1198 commit f57367c832a52d7d0c8540eb96fc1c67600f693a @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() : true)",
+ "return (this.form.onsubmit ? this.form.onsubmit() : this.form.submit())",
].join(";")
end

0 comments on commit f57367c

Please sign in to comment.