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 15:15:22 +0000 (16:15 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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) {