From 13e9c0af852f7529532274305174eccf6dfd7f50 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Fri, 10 Sep 2010 05:53:18 +0000 Subject: [PATCH] forms MDL-24051 Fixed regression in IE + YUI --- lib/form/form.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/form/form.js b/lib/form/form.js index 16387f6a2f8..376b336b18c 100644 --- a/lib/form/form.js +++ b/lib/form/form.js @@ -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); } },