"deps": []
};
cbi_d.unshift(entry);
- }
+ }
entry.deps.push(dep)
}
}
function cbi_d_checkvalue(target, ref) {
var t = document.getElementById(target);
var value;
-
+
if (!t || !t.value) {
value = "";
} else {
value = t.value;
-
+
if (t.type == "checkbox") {
value = t.checked ? value : "";
}
}
-
+
return (value == ref)
}
if (istat) {
return true
}
- }
+ }
}
function cbi_d_update() {
parent.appendChild(entry.node);
} else {
next.parentNode.insertBefore(entry.node, next);
- }
+ }
state = (state || (node && node.parentNode))
}
}
}
function cbi_combobox(id, values, def, man) {
- var selid = "cbi.combobox." + id
+ var selid = "cbi.combobox." + id;
if (document.getElementById(selid)) {
return
}
var obj = document.getElementById(id)
var sel = document.createElement("select");
- sel.id = selid
+ sel.id = selid;
+ sel.className = 'cbi-input-select';
if (obj.nextSibling) {
- obj.parentNode.insertBefore(sel, obj.nextSibling);
+ obj.parentNode.insertBefore(sel, obj.nextSibling);
} else {
obj.parentNode.appendChild(sel);
}
cbi_combobox(id, values, def, man)
});
cbi_combobox(id, values, def, man);
-}
\ No newline at end of file
+}