Skip to content

Commit

Permalink
Fixed prototype to consider all fields it doesn't know as text (such …
Browse files Browse the repository at this point in the history
…as Safari's search) just like the browser in its serialization #1497 [Sean Treadway]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Jun 25, 2005
1 parent 17928b7 commit e4ccbf2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
*SVN*

* Fixed prototype to consider all fields it doesn't know as text (such as Safari's search) just like the browser in its serialization #1497 [Sean Treadway]

* Improved performance of Routes generation by a factor of 5 #1434 [Nicholas Seckar]

* Added named routes (NEEDS BETTER DESCRIPTION) #1434 [Nicholas Seckar]
Expand Down
6 changes: 2 additions & 4 deletions actionpack/lib/action_view/helpers/javascripts/prototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,11 @@ Form.Element = {
Form.Element.Serializers = {
input: function(element) {
switch (element.type.toLowerCase()) {
case 'hidden':
case 'password':
case 'text':
return Form.Element.Serializers.textarea(element);
case 'checkbox':
case 'radio':
return Form.Element.Serializers.inputSelector(element);
default:
return Form.Element.Serializers.textarea(element);
}
return false;
},
Expand Down
6 changes: 2 additions & 4 deletions railties/html/javascripts/prototype.js
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,11 @@ Form.Element = {
Form.Element.Serializers = {
input: function(element) {
switch (element.type.toLowerCase()) {
case 'hidden':
case 'password':
case 'text':
return Form.Element.Serializers.textarea(element);
case 'checkbox':
case 'radio':
return Form.Element.Serializers.inputSelector(element);
default:
return Form.Element.Serializers.textarea(element);
}
return false;
},
Expand Down

0 comments on commit e4ccbf2

Please sign in to comment.