diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-15 15:59:46 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-15 15:59:46 +0000 |
commit | 41efc83c17d01fd0a820a6dd6a88e42cec2ba089 (patch) | |
tree | cf4e6615a11967fc9b3b99ad01fc3f51b5d021b2 | |
parent | 67e4e6fe078ae44c0712a01fc5d7b189202b2780 (diff) |
* luci/libs/cbi: fix <label> assignment for checkbox-based mvalues
-rw-r--r-- | libs/cbi/luasrc/view/cbi/mvalue.htm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/cbi/luasrc/view/cbi/mvalue.htm b/libs/cbi/luasrc/view/cbi/mvalue.htm index a125ccf6e0..9580d87f79 100644 --- a/libs/cbi/luasrc/view/cbi/mvalue.htm +++ b/libs/cbi/luasrc/view/cbi/mvalue.htm @@ -26,9 +26,9 @@ local v = self:valuelist(section) local c = 0; for i, key in pairs(self.keylist) do c = c + 1%> - <input type="checkbox" id="cbid.<%=self.config.."."..section.."."..self.option%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if luci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" /> - <label for="cbid.<%=self.config.."."..section.."."..self.option%>"><%=self.vallist[i]%></label><br /> + <input type="checkbox" id="cbid.<%=self.config.."."..section.."."..self.option.."."..i%>" name="cbid.<%=self.config.."."..section.."."..self.option%>"<% if luci.util.contains(v, key) then %> checked="checked"<% end %> value="<%=key%>" /> + <label for="cbid.<%=self.config.."."..section.."."..self.option.."."..i%>"><%=self.vallist[i]%></label><br /> <% if c == self.size then c = 0 %><br /> <% end end %> <% end %> -<%+cbi/valuefooter%>
\ No newline at end of file +<%+cbi/valuefooter%> |