summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/htdocs/luci-static
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/cbi/htdocs/luci-static
parentbfcefb717f6f23d8382bd7b2a3b877c3e54cc29a (diff)
Minor bugfixes
Added possibility to add networks from Wifi page
Diffstat (limited to 'libs/cbi/htdocs/luci-static')
-rw-r--r--libs/cbi/htdocs/luci-static/resources/cbi.js6
1 files changed, 5 insertions, 1 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 == "") {