summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-19 17:02:40 +0000
committerSteven Barth <steven@midlink.org>2008-08-19 17:02:40 +0000
commita35337e6a150412a5a7be8b4fe06eaba04dc4fa5 (patch)
treeb65276921c9cbeecad49f85bc513f2c9cf2db933 /libs
parentbfcefb717f6f23d8382bd7b2a3b877c3e54cc29a (diff)
Minor bugfixes
Added possibility to add networks from Wifi page
Diffstat (limited to 'libs')
-rw-r--r--libs/cbi/htdocs/luci-static/resources/cbi.js6
-rw-r--r--libs/cbi/luasrc/view/cbi/value.htm7
2 files changed, 11 insertions, 2 deletions
diff --git a/libs/cbi/htdocs/luci-static/resources/cbi.js b/libs/cbi/htdocs/luci-static/resources/cbi.js
index d0e31e483a..227e33269d 100644
--- a/libs/cbi/htdocs/luci-static/resources/cbi.js
+++ b/libs/cbi/htdocs/luci-static/resources/cbi.js
@@ -98,7 +98,11 @@ function cbi_bind(obj, type, callback, mode) {
function cbi_combobox(id, values, def, man) {
var obj = document.getElementById(id)
var sel = document.createElement("select");
- obj.parentNode.appendChild(sel);
+ if (obj.nextSibling) {
+ obj.parentNode.insertBefore(sel, obj.nextSibling);
+ } else {
+ obj.parentNode.appendChild(sel);
+ }
if (!values[obj.value]) {
if (obj.value == "") {
diff --git a/libs/cbi/luasrc/view/cbi/value.htm b/libs/cbi/luasrc/view/cbi/value.htm
index 0dc5841469..d85fa81d9d 100644
--- a/libs/cbi/luasrc/view/cbi/value.htm
+++ b/libs/cbi/luasrc/view/cbi/value.htm
@@ -26,7 +26,12 @@ $Id$
-%>
}, '<%- if not self.rmempty and not self.optional then -%>
<%-:cbi_select-%>
- <%- end -%>', '<%:cbi_manual%>');
+ <%- end -%>', '
+ <%- if self.combobox_manual then -%>
+ <%-=self.combobox_manual-%>
+ <%- else -%>
+ <%-:cbi_manual-%>
+ <%- end -%>');
</script>
<% end -%>
<%+cbi/valuefooter%>