Overall CBI improvements: DummyValue handling, dependency conflicts, ...
[project/luci.git] / libs / cbi / luasrc / view / cbi / dvalue.htm
index 88f38ca..28cd9ab 100644 (file)
@@ -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%>
 &#160;
 <%- if self.href then %></a><%end%>
 &#160;
+<input type="hidden" id="<%=cbid%>" value="<%=luci.util.pcdata(self:cfgvalue(section))%>" />
 <%+cbi/valuefooter%>
 <%+cbi/valuefooter%>