libs/cbi: Fixed MultiValue select widget
This commit is contained in:
parent
d12dfa5186
commit
4d7c453ea8
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ local v = self:valuelist(section)
|
||||||
%>
|
%>
|
||||||
<%+cbi/valueheader%>
|
<%+cbi/valueheader%>
|
||||||
<% if self.widget == "select" then %>
|
<% if self.widget == "select" then %>
|
||||||
<select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>[]"<% if self.size then %> size="<%=self.size%>"<% end %>>
|
<select multiple="multiple" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if self.size then %> size="<%=self.size%>"<% end %>>
|
||||||
<%for i, key in pairs(self.keylist) do %>
|
<%for i, key in pairs(self.keylist) do %>
|
||||||
<option<% if luci.util.contains(v, key) then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option>
|
<option<% if luci.util.contains(v, key) then %> selected="selected"<% end %> value="<%=key%>"><%=self.vallist[i]%></option>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in a new issue