libs/cbi: also set id attribute for hidden fields
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 11 Jan 2009 15:45:34 +0000 (15:45 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 11 Jan 2009 15:45:34 +0000 (15:45 +0000)
libs/cbi/luasrc/view/cbi/ucisection.htm

index 54115f62439e70190235fac075f78d6ccb969bd5..7e8467cfc4ed38857122ec547c6353ea5b61432c 100644 (file)
@@ -17,7 +17,7 @@ $Id$
        if type(self.hidden) == "table" then
                for k, v in pairs(self.hidden) do
 -%>
-       <input type="hidden" name="cbid.<%=self.config%>.<%=section%>.<%=k%>" value="<%=luci.util.pcdata(v)%>" />
+       <input type="hidden" id="cbid.<%=self.config%>.<%=section%>.<%=k%>" name="cbid.<%=self.config%>.<%=section%>.<%=k%>" value="<%=luci.util.pcdata(v)%>" />
 <%-
                end
        end