diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 01f3f700c9..63510e7bc2 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fixed Form.disable in Prototype #1317 [Wintermute] + * Added accessors to logger, params, response, session, and headers from the view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller * Added support for POST data in form of YAML or XML, which is controller through the X-POST_DATA_MARSHAL header. Example request: diff --git a/actionpack/lib/action_view/helpers/javascripts/prototype.js b/actionpack/lib/action_view/helpers/javascripts/prototype.js index 72b141ac4a..b7647f2714 100644 --- a/actionpack/lib/action_view/helpers/javascripts/prototype.js +++ b/actionpack/lib/action_view/helpers/javascripts/prototype.js @@ -312,7 +312,7 @@ var Form = { for (var i = 0; i < elements.length; i++) { var element = elements[i]; element.blur(); - element.disable = 'true'; + element.disabled = 'true'; } }, diff --git a/railties/html/javascripts/prototype.js b/railties/html/javascripts/prototype.js index 72b141ac4a..b7647f2714 100644 --- a/railties/html/javascripts/prototype.js +++ b/railties/html/javascripts/prototype.js @@ -312,7 +312,7 @@ var Form = { for (var i = 0; i < elements.length; i++) { var element = elements[i]; element.blur(); - element.disable = 'true'; + element.disabled = 'true'; } },