From a9ec09115b68318f4e656f6a46b3df6271b47dbb Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Mon, 5 Mar 2007 16:03:11 +0000 Subject: [PATCH] Prototype: Form.Element.disable() will now call blur(), removed blur() call from Form.Element.enable(). Closes #6034. [tdd] --- CHANGELOG | 2 ++ src/form.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 8caaa07..4baa9a1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Form.Element.disable() will now call blur(), removed blur() call from Form.Element.enable(). Closes #6034. [tdd] + * Optimize document.getElementsByClassName and finalize DOM performance optimization refactoring. Closes #6696. [Mislav Marohnić] * Fix an issue with serializing empty array inputs. Closes #7516. [stakadush, Mislav Marohnić] diff --git a/src/form.js b/src/form.js index 54a271d..125f95a 100644 --- a/src/form.js +++ b/src/form.js @@ -160,13 +160,13 @@ Form.Element.Methods = { disable: function(element) { element = $(element); + element.blur(); element.disabled = true; return element; }, enable: function(element) { element = $(element); - element.blur(); element.disabled = false; return element; }