forms MDL-24051 Fixed regression in IE + YUI
This commit is contained in:
+1
-5
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user