Work around an ugly Opera and Internet Explorer event handling bug.
This commit is contained in:
parent
5679f19503
commit
4f354ea95a
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue