projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96e7553
)
libs/web: add placeholder support to DynamicList widgets
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 30 Oct 2010 17:21:27 +0000
(17:21 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 30 Oct 2010 17:21:27 +0000
(17:21 +0000)
libs/web/luasrc/view/cbi/dynlist.htm
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/view/cbi/dynlist.htm
b/libs/web/luasrc/view/cbi/dynlist.htm
index
9ca7534
..
387299d
100644
(file)
--- a/
libs/web/luasrc/view/cbi/dynlist.htm
+++ b/
libs/web/luasrc/view/cbi/dynlist.htm
@@
-19,7
+19,10
@@
$Id$
for i=1, #vals + 1 do
local val = vals[i]
%>
for i=1, #vals + 1 do
local val = vals[i]
%>
- <input class="cbi-input-text" value="<%=pcdata(val)%>" onchange="cbi_d_update(this.id)" type="text"<%= attr("id", cbid .. "." .. i) .. attr("name", cbid) .. ifattr(self.size, "size")%> /><br />
+ <input class="cbi-input-text" value="<%=pcdata(val)%>" onchange="cbi_d_update(this.id)" type="text"<%=
+ attr("id", cbid .. "." .. i) .. attr("name", cbid) .. ifattr(self.size, "size") ..
+ ifattr(i == 1 and self.placeholder, "placeholder", self.placeholder)
+ %> /><br />
<% end %>
</div>
<script type="text/javascript">
<% end %>
</div>
<script type="text/javascript">