diff options
author | Steven Barth <steven@midlink.org> | 2009-11-23 13:09:52 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-23 13:09:52 +0000 |
commit | 565cc95f0db46e4d1e0bb947115af2d762c3b859 (patch) | |
tree | 930775385d855013b8928b60013ae77605b60fbb /libs/cbi/luasrc/view | |
parent | 8163cc8e67495af36e38945394234f3beb653d29 (diff) |
CBI: Free dependencies
Diffstat (limited to 'libs/cbi/luasrc/view')
-rw-r--r-- | libs/cbi/luasrc/view/cbi/full_valuefooter.htm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm index 9130a99f9..e1174e250 100644 --- a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm +++ b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm @@ -34,8 +34,16 @@ $Id$ cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", { <%- for k,v in pairs(d.deps) do + local depk + if k:find("!", 1, true) then + depk = string.format('"%s"', k) + elseif k:find(".", 1, true) then + depk = string.format('"cbid.%s"', k) + else + depk = string.format('"cbid.%s.%s.%s"', self.config, section, k) + end -%> - <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%> + <%-= depk .. ":" .. string.format("%q", v)-%> <%-if next(d.deps, k) then-%>,<%-end-%> <%- end |