From: Jo-Philipp Wich Date: Sun, 19 Jan 2020 14:56:59 +0000 (+0100) Subject: luci-base: form.js: don't stringify node arguments in CBIValue.value() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80dcda8a2919176c6c7e03458838ac8fc0f6e526;p=oweals%2Fluci.git luci-base: form.js: don't stringify node arguments in CBIValue.value() Signed-off-by: Jo-Philipp Wich (cherry picked from commit 4670099a20de4700f4c7cb34f67618975b2f3a16) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 8d673a877..88e566519 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) {