mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Added documentation and fixed an ajax bug
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
2
railties/html/javascripts/prototype.js
vendored
2
railties/html/javascripts/prototype.js
vendored
@@ -288,7 +288,7 @@ Form.Element.Serializers = {
|
||||
|
||||
select: function(element) {
|
||||
var index = element.selectedIndex;
|
||||
return [element.name, element.options[index].value];
|
||||
return [element.name, (index >= 0) ? element.options[index].value : ''];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user