Changed the default name of the input tag generated by FormTagHelper#submit_tag from "submit" to "commit" so it doesnt clash with form.submit() calls in Javascript #1271
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
9113aa2744
commit
5ba31b3d1d
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Changed the default name of the input tag generated by FormTagHelper#submit_tag from "submit" to "commit" so it doesn't clash with form.submit() calls in Javascript #1271
|
||||
|
||||
* Fixed relative urls support for lighttpd #1048 [Nicholas Seckar/maznawak@nerim.net]
|
||||
|
||||
* Correct distance_of_time_in_words for integer arguments and make the second arg optional, treating the first arg as a duration in seconds. #1458 [madrobby <thomas@fesch.at>]
|
||||
|
|
|
@ -76,7 +76,7 @@ module ActionView
|
|||
end
|
||||
|
||||
def submit_tag(value = "Save changes", options = {})
|
||||
tag("input", { "type" => "submit", "name" => "submit", "value" => value }.update(convert_options(options)))
|
||||
tag("input", { "type" => "submit", "name" => "commit", "value" => value }.update(convert_options(options)))
|
||||
end
|
||||
|
||||
def image_submit_tag(source, options = {})
|
||||
|
|
Loading…
Reference in New Issue