luci-base: form.js: don't stringify node arguments in CBIValue.value()
authorJo-Philipp Wich <jo@mein.io>
Sun, 19 Jan 2020 14:56:59 +0000 (15:56 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 19 Jan 2020 19:15:52 +0000 (20:15 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4670099a20de4700f4c7cb34f67618975b2f3a16)

modules/luci-base/htdocs/luci-static/resources/form.js

index 8d673a877e4b247a2c481941f1ed6f38975be296..88e566519c06de469e0809971b8fa5afddf3e03f 100644 (file)
@@ -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) {