* luci/themes: fix small styling issue
[project/luci.git] / libs / cbi / luasrc / view / cbi / dvalue.htm
index bdcbd31..28cd9ab 100644 (file)
@@ -14,14 +14,9 @@ $Id$
 -%>
 
 <%+cbi/valueheader%>
-<% if self.value then
-       if type(self.value) == "function" then %>
-       <%=luci.util.pcdata(self:value(section))%>
-<% else %>
-       <%=luci.util.pcdata(self.value)%>
-<%     end
-else %>
+<% if self.href then %><a href="<%=self.href%>"><% end -%>
        <%=luci.util.pcdata(self:cfgvalue(section))%>
-<% end %>
-&nbsp;
+<%- if self.href then %></a><%end%>
+&#160;
+<input type="hidden" id="<%=cbid%>" value="<%=luci.util.pcdata(self:cfgvalue(section))%>" />
 <%+cbi/valuefooter%>