* luci/libs/cbi: also set css class names for dynamically generated select lists
This commit is contained in:
parent
9cacdbc05c
commit
c6143b89d3
1 changed files with 11 additions and 10 deletions
|
@ -100,14 +100,15 @@ function cbi_bind(obj, type, callback, mode) {
|
|||
}
|
||||
|
||||
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);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue