diff options
author | Steven Barth <steven@midlink.org> | 2008-09-18 14:36:26 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-18 14:36:26 +0000 |
commit | 6785c3ed4b237850c8f577e4a8be4e393f6095fb (patch) | |
tree | e0d1c00d82bec651be2d02cda6f54c2378193f79 /libs/cbi | |
parent | 8ff88fcd852ccc6184abe94898b571605bfb888e (diff) |
Work around an ugly Opera and Internet Explorer event handling bug.
Diffstat (limited to 'libs/cbi')
-rw-r--r-- | libs/cbi/htdocs/luci-static/resources/cbi.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js index 33a328cff..eb2420a1c 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 { |