summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-19 15:56:59 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-19 16:15:22 +0100
commit4670099a20de4700f4c7cb34f67618975b2f3a16 (patch)
tree9739fffde8eddb43d6987c72e516eb2caba7a23c /modules/luci-base
parentcc123a03ce738dffae9abf5aefad9b75020a0a04 (diff)
luci-base: form.js: don't stringify node arguments in CBIValue.value()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js
index 8d673a877e..88e566519c 100644
--- a/modules/luci-base/htdocs/luci-static/resources/form.js
+++ b/modules/luci-base/htdocs/luci-static/resources/form.js
@@ -1572,7 +1572,7 @@ var CBIValue = CBIAbstractValue.extend({
this.keylist.push(String(key));
this.vallist = this.vallist || [];
- this.vallist.push(String(val != null ? val : key));
+ this.vallist.push(L.dom.elem(val) ? val : String(val != null ? val : key));
},
render: function(option_index, section_id, in_table) {