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]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
17928b7347
commit
e4ccbf28c8
@ -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]
|
||||
|
@ -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;
|
||||
},
|
||||
|
6
railties/html/javascripts/prototype.js
vendored
6
railties/html/javascripts/prototype.js
vendored
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user