From: Steven Barth Date: Thu, 18 Sep 2008 14:36:53 +0000 (+0000) Subject: Work around an ugly Opera and Internet Explorer event handling bug. X-Git-Tag: 0.8.0~59 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4f354ea95a6388f4d363c0f07743085cf8a485de;p=project%2Fluci.git Work around an ugly Opera and Internet Explorer event handling bug. --- diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index 33a328cff6..eb2420a1c1 100644 --- a/libs/cbi/htdocs/luci-static/resources/cbi.js +++ b/libs/cbi/htdocs/luci-static/resources/cbi.js @@ -102,8 +102,14 @@ function cbi_bind(obj, type, callback, mode) { } function cbi_combobox(id, values, def, man) { + var selid = "cbi.combobox." + id + if (document.getElementById(selid)) { + return + } + var obj = document.getElementById(id) var sel = document.createElement("select"); + sel.id = selid if (obj.nextSibling) { obj.parentNode.insertBefore(sel, obj.nextSibling); } else {