diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-22 12:33:47 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-22 12:33:47 +0000 |
commit | 4e60fe3ef3474834a9880f3cdd2a47f8efa99bc5 (patch) | |
tree | acdd26f036976ecb3ded5adaf4b99c76f52cc899 /railties | |
parent | e1ce18020e1c23c148060ec2180dc0ed794be06e (diff) | |
download | rails-4e60fe3ef3474834a9880f3cdd2a47f8efa99bc5.tar.gz rails-4e60fe3ef3474834a9880f3cdd2a47f8efa99bc5.tar.bz2 rails-4e60fe3ef3474834a9880f3cdd2a47f8efa99bc5.zip |
Added documentation and fixed an ajax bug
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@974 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties')
-rw-r--r-- | railties/html/javascripts/prototype.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js index b998985235..5f2f9edb9c 100644 --- a/railties/html/javascripts/prototype.js +++ b/railties/html/javascripts/prototype.js @@ -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 : '']; } } |