projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CBI: Free dependencies
[project/luci.git]
/
libs
/
cbi
/
luasrc
/
view
/
cbi
/
full_valuefooter.htm
diff --git
a/libs/cbi/luasrc/view/cbi/full_valuefooter.htm
b/libs/cbi/luasrc/view/cbi/full_valuefooter.htm
index 9130a99f96f38a7b699a4a267bd2bae3b08c6e4d..e1174e250d96cb275d922ccd215eba00e63abddf 100644
(file)
--- 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
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
<%-if next(d.deps, k) then-%>,<%-end-%>
<%-
end