projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a63e1
)
libs/web: implement rawhtml property for DummyValue switches, allowes passing arbrita...
author
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 8 Nov 2010 18:13:40 +0000
(18:13 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Mon, 8 Nov 2010 18:13:40 +0000
(18:13 +0000)
libs/web/luasrc/view/cbi/dvalue.htm
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/view/cbi/dvalue.htm
b/libs/web/luasrc/view/cbi/dvalue.htm
index 9745fff4cbbae4d801251502a60ac0a31017e0fb..7377348fe4ccbad9ad39887bcf4a723ce3c7276e 100644
(file)
--- 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%>
 
<input type="hidden" id="<%=cbid%>" value="<%=pcdata(self:cfgvalue(section) or self.default or "")%>" />