summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-11-08 18:13:40 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-11-08 18:13:40 +0000
commit16262c2be04e035f3403fddac6144272092e8dc0 (patch)
tree2c514ec22be16bd29c59f866722188a895214d7b /libs
parentc6a63e1794d347daba1ff469814c5ebeab47b769 (diff)
libs/web: implement rawhtml property for DummyValue switches, allowes passing arbritary markup
Diffstat (limited to 'libs')
-rw-r--r--libs/web/luasrc/view/cbi/dvalue.htm9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/dvalue.htm b/libs/web/luasrc/view/cbi/dvalue.htm
index 9745fff4c..7377348fe 100644
--- a/libs/web/luasrc/view/cbi/dvalue.htm
+++ b/libs/web/luasrc/view/cbi/dvalue.htm
@@ -15,7 +15,14 @@ $Id$
<%+cbi/valueheader%>
<% if self.href then %><a href="<%=self.href%>"><% end -%>
- <%=pcdata(self:cfgvalue(section) or self.default or "")%>
+ <%
+ local val = self:cfgvalue(section) or self.default or ""
+ if not self.rawhtml then
+ write(pcdata(val))
+ else
+ write(val)
+ end
+ %>
<%- if self.href then %></a><%end%>
&#160;
<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" />