luci/modules/luci-base/luasrc/view/cbi/mvalue.htm
Anton Kikin aeba90032f luci-base: fix multiple parameter in cbi templates
In the dc0211803e commit, the parameter "multi" in ui.js is
replaced with "multiple" everywhere. Thus, it must also be changed
in the cbi templates.

Fixes: dc0211803e
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
2019-07-26 18:18:42 +03:00

24 lines
573 B
HTML

<%+cbi/valueheader%>
<%
local util = require "luci.util"
local values = {}
local value
for value in util.imatch(self:cfgvalue(section) or self.default) do
values[#values+1] = value
end
%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
"Select", values, self:choices(), {
id = cbid,
name = cbid,
size = self.size,
sort = self.keylist,
multiple = true,
widget = self.widget,
datatype = self.datatype,
optional = self.optional or self.rmempty,
readonly = self.readonly,
placeholder = self.placeholder
}
}))%>></div>
<%+cbi/valuefooter%>