mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-30 04:45:13 +08:00
update 2026-09-12 16:17:58
This commit is contained in:
1 parent
639738b05d
commit
7497dff620
13 files changed
+252
-142
No files matched your search
@@ -61,14 +61,11 @@ function getOption(config, section, opt) {
|
||||
const id = `cbid.${config}.${section}.${opt}`;
|
||||
obj = document.getElementsByName(id)[0] || document.getElementById(id);
|
||||
if (obj) {
|
||||
//lua luci combobox
|
||||
const combobox = document.getElementById('cbi.combobox.' + id);
|
||||
if (combobox) {
|
||||
obj.combobox = combobox;
|
||||
}
|
||||
const div = document.getElementById(id);
|
||||
if (div && div.getElementsByTagName("li").length > 0) {
|
||||
obj = div;
|
||||
}
|
||||
return obj;
|
||||
} else {
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user