projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Overall CBI improvements: DummyValue handling, dependency conflicts, ...
[project/luci.git]
/
libs
/
cbi
/
luasrc
/
view
/
cbi
/
dvalue.htm
diff --git
a/libs/cbi/luasrc/view/cbi/dvalue.htm
b/libs/cbi/luasrc/view/cbi/dvalue.htm
index
88f38ca
..
28cd9ab
100644
(file)
--- a/
libs/cbi/luasrc/view/cbi/dvalue.htm
+++ b/
libs/cbi/luasrc/view/cbi/dvalue.htm
@@
-15,15
+15,8
@@
$Id$
<%+cbi/valueheader%>
<% if self.href then %><a href="<%=self.href%>"><% end -%>
<%+cbi/valueheader%>
<% if self.href then %><a href="<%=self.href%>"><% end -%>
-<%- if self.value then
- if type(self.value) == "function" then %>
- <%=luci.util.pcdata(self:value(section))%>
-<% else %>
- <%=luci.util.pcdata(self.value)%>
-<% end
-else %>
<%=luci.util.pcdata(self:cfgvalue(section))%>
<%=luci.util.pcdata(self:cfgvalue(section))%>
-<% end -%>
<%- if self.href then %></a><%end%>
 
<%- if self.href then %></a><%end%>
 
+<input type="hidden" id="<%=cbid%>" value="<%=luci.util.pcdata(self:cfgvalue(section))%>" />
<%+cbi/valuefooter%>
<%+cbi/valuefooter%>