From f64847e2ddd99980ce816c53d1cf5de6c4c97a27 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Sat, 8 Nov 2008 15:27:31 +0000 Subject: [PATCH] Fix a nasty Internet Suxplorer bug which prevented XHR forms from being correctly submitted. --- libs/cbi/htdocs/luci-static/resources/cbi.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index e9a801154..abeba345b 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -195,22 +195,21 @@ function cbi_filebrowser(id, url, defpath) { //Hijacks the CBI form to send via XHR (requires Prototype) function cbi_hijack_forms(layer, win, fail, load) { - layer.select('form').each(function(form) { - form.observe('submit', function(event) { + var forms = layer.getElementsByTagName('form'); + for (var i=0; i