forms MDL-24051 Fixed regression in IE + YUI

This commit is contained in:
Sam Hemelryk
2010-09-10 05:53:18 +00:00
parent 48041cd505
commit 13e9c0af85
+1 -5
View File
@@ -28,11 +28,7 @@ M.form.initShowAdvanced = function(Y, config) {
this._advAreas = Y.all('form .advanced');
this._advButtons = Y.all('.showadvancedbtn');
if (this._advButtons.size() > 0) {
this._advButtons.item(0).get('form').all('input').each(function(n){
if (this._stateInput == null && n.getAttribute('name') == 'mform_showadvanced_last') {
this._stateInput = n;
}
}, this);
this._stateInput = new Y.NodeList(document.getElementsByName('mform_showadvanced_last'));
this._advButtons.on('click', this.switchState, this);
}
},