From 4670099a20de4700f4c7cb34f67618975b2f3a16 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 19 Jan 2020 15:56:59 +0100 Subject: luci-base: form.js: don't stringify node arguments in CBIValue.value() Signed-off-by: Jo-Philipp Wich --- modules/luci-base/htdocs/luci-static/resources/form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/htdocs/luci-static/resources/form.js') 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) { -- cgit v1.2.3