aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-03-26 14:07:08 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-03-26 14:07:08 +0000
commit9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b (patch)
tree9be7c4a3009a587ed95ed2a6d255a6cea9b77620 /actionpack/lib
parent3fe9d8ac359cc38698b3ee7fb876308dfdf144ed (diff)
downloadrails-9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b.tar.gz
rails-9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b.tar.bz2
rails-9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b.zip
Fixed Form.Serialize for the JavascriptHelper to also seriliaze password fields #934 [dweitzman@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/javascripts/prototype.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js
index 5d8d69dedb..10e5f69cf6 100644
--- a/actionpack/lib/action_view/helpers/javascripts/prototype.js
+++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js
@@ -280,6 +280,7 @@ Form.Element.Serializers = {
input: function(element) {
switch (element.type.toLowerCase()) {
case 'hidden':
+ case 'password':
case 'text':
return Form.Element.Serializers.textarea(element);
case 'checkbox':