luci/modules/luci-base/luasrc/view/cbi/dropdown.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

19 lines
676 B
HTML

<%+cbi/valueheader%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({
"Dropdown", self:cfgvalue(section) or self.default, self:choices(), {
id = cbid,
name = cbid,
sort = self.keylist,
multiple = self.multiple,
datatype = self.datatype,
optional = self.optional or self.rmempty,
readonly = self.readonly,
maxlength = self.maxlength,
placeholder = self.placeholder,
display_items = self.display or self.size or 3,
dropdown_items = self.dropdown or self.display or self.size or 5,
custom_placeholder = self.custom or
(self.multiple and translate("Enter custom values") or translate("Enter custom value"))
}
}))%>></div>
<%+cbi/valuefooter%>