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:
David Heinemeier Hansson
2005-03-22 12:33:47 +00:00
parent e1ce18020e
commit 4e60fe3ef3
6 changed files with 24 additions and 13 deletions

View File

@@ -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 : ''];
}
}