X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fcbi%2Fluasrc%2Fview%2Fcbi%2Ffull_valuefooter.htm;h=c069b7f92c33207d57107186b42ba7ff12e80296;hp=9130a99f96f38a7b699a4a267bd2bae3b08c6e4d;hb=e822874a710a00ee8b6de988ece12ba76e193236;hpb=284f85fb4e185bf743c404161d0a83be858420c6 diff --git a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm index 9130a99f9..c069b7f92 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 @@ -46,8 +54,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