Browse files

Fixed Form.Serialize for the JavascriptHelper to also seriliaze passw…

…ord fields #934 [dweitzman@gmail.com]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 3fe9d8a commit 9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b @dhh dhh committed Mar 26, 2005
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Fixed Form.Serialize for the JavascriptHelper to also seriliaze password fields #934 [dweitzman@gmail.com]
+
* Added JavascriptHelper#escape_javascript as a public method (was private) and made it escape both single and double quotes and new lines #940 [mortonda@dgrmm.net]
* Added trailing_slash option to url_for, so you can generate urls ending in a slash. Note that is currently not recommended unless you need it for special reasons since it breaks caching #937 [stian@grytoyr.net]
View
1 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':
View
1 railties/html/javascripts/prototype.js
@@ -269,6 +269,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':

0 comments on commit 9ca9f95

Please sign in to comment.