projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nixio:
[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
e42043e
..
0ae45fb
100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/full_valuefooter.htm
+++ b/
libs/cbi/luasrc/view/cbi/full_valuefooter.htm
@@
-13,7
+13,7
@@
$Id$
-%>
-%>
- <% if #self.description > 0 then -%>
+ <% if
self.description and
#self.description > 0 then -%>
<% if not luci.util.instanceof( self, luci.cbi.Flag ) then -%>
<br />
<%- end %>
<% if not luci.util.instanceof( self, luci.cbi.Flag ) then -%>
<br />
<%- end %>
@@
-28,17
+28,18
@@
$Id$
</div>
<% if #self.deps > 0 then -%>
</div>
<% if #self.deps > 0 then -%>
- <script type="text/javascript">
+ <script type="text/javascript"
id="cbip-<%=self.config.."-"..section.."-"..self.option%>"
>
<% for j, d in ipairs(self.deps) do -%>
cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", {
<%-
for k,v in pairs(d.deps) do
-%>
<% for j, d in ipairs(self.deps) do -%>
cbi_d_add("cbi-<%=self.config.."-"..section.."-"..self.option..d.add%>", {
<%-
for k,v in pairs(d.deps) do
-%>
- <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%>,
+ <%-=string.format('"cbid.%s.%s.%s"', self.config, section, k) .. ":" .. string.format("%q", v)-%>
+ <%-if next(d.deps, k) then-%>,<%-end-%>
<%-
end
-%>
<%-
end
-%>
- });
+ }
, "cbip-<%=self.config.."-"..section.."-"..self.option%>"
);
<%- end %>
</script>
<%- end %>
<%- end %>
</script>
<%- end %>