From: Jo-Philipp Wich Date: Mon, 5 Nov 2018 15:41:25 +0000 (+0100) Subject: luci-base: cbi.js: fix passing multiple dropdown values in change event X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a453f2b9d0eb4345513ac9f493e5bd88337ac244;p=oweals%2Fluci.git luci-base: cbi.js: fix passing multiple dropdown values in change event 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 --- diff --git a/modules/luci-base/htdocs/luci-static/resources/cbi.js b/modules/luci-base/htdocs/luci-static/resources/cbi.js index 0230ae9fa..5a095bdfd 100644 --- a/modules/luci-base/htdocs/luci-static/resources/cbi.js +++ b/modules/luci-base/htdocs/luci-static/resources/cbi.js @@ -1754,7 +1754,7 @@ CBIDropdown = { element: sb }; - if (this.mult) + if (this.multi) detail.values = values; else detail.value = values.length ? values[0] : null;