summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-13 18:01:30 +0000
committerSteven Barth <steven@midlink.org>2008-08-13 18:01:30 +0000
commit5dc01425ef5e297d9c4913526df0a610e991c31b (patch)
tree40b602d1b2c76adadcec6f7752cb28485bb146f5 /libs/cbi/htdocs/luci-static/resources
parent4c1f7c116944fd5b37173401db2479859acab91b (diff)
More UI optimizations
Diffstat (limited to 'libs/cbi/htdocs/luci-static/resources')
-rw-r--r--libs/cbi/htdocs/luci-static/resources/cbi.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js
index 18ef42068b..e42193cffc 100644
--- a/libs/cbi/htdocs/luci-static/resources/cbi.js
+++ b/libs/cbi/htdocs/luci-static/resources/cbi.js
@@ -98,12 +98,12 @@ function cbi_combobox(id, values, def, man) {
obj.style.display = "none";
cbi_bind(sel, "change", function() {
- obj.value = sel.options[sel.selectedIndex].value;
-
if (sel.selectedIndex == sel.options.length - 1) {
obj.style.display = "inline";
sel.parentNode.removeChild(sel);
obj.focus();
+ } else {
+ obj.value = sel.options[sel.selectedIndex].value;
}
})
}