luci-base: cbi.js: fix passing multiple dropdown values in change event
authorJo-Philipp Wich <jo@mein.io>
Mon, 5 Nov 2018 15:41:25 +0000 (16:41 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 14 Nov 2018 19:46:04 +0000 (20:46 +0100)
Due to a misspelled property name, only the first value was passed in
the event details.

Fixes: c2b570998 ("luci-base: cbi.js: rework dropdown implementation")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/cbi.js

index 0230ae9fa0078bef1988be99820e75c716c1664a..5a095bdfde22f89687ec98bd686d5783ba74141c 100644 (file)
@@ -1754,7 +1754,7 @@ CBIDropdown = {
                        element: sb
                };
 
-               if (this.mult)
+               if (this.multi)
                        detail.values = values;
                else
                        detail.value = values.length ? values[0] : null;