luci-base: fix cbi mvalue templates

Fixes: 9c7eb1dec ("luci-base: switch from server side to client side widget markup")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-07-07 21:13:02 +02:00
parent 875a96f653
commit 2a229e50cf

View file

@ -1,6 +1,6 @@
<%+cbi/valueheader%> <%+cbi/valueheader%>
<div<%=attr("data-ui-widget", luci.util.serialize_json({ <div<%=attr("data-ui-widget", luci.util.serialize_json({
"Select", self:cfgvalues(section), self:choices(), { "Select", self:cfgvalue(section) or self.default, self:choices(), {
id = cbid, id = cbid,
name = cbid, name = cbid,
size = self.size, size = self.size,