Prototype: Form.Element.disable() will now call blur(), removed blur() call from Form.Element.enable(). Closes #6034. [tdd]
This commit is contained in:
parent
fcc23f0d70
commit
a9ec09115b
|
@ -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ć]
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue