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; }