From a35337e6a150412a5a7be8b4fe06eaba04dc4fa5 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 19 Aug 2008 17:02:40 +0000 Subject: Minor bugfixes Added possibility to add networks from Wifi page --- libs/cbi/htdocs/luci-static/resources/cbi.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs/cbi/htdocs/luci-static/resources') 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 == "") { -- cgit v1.2.3