summaryrefslogtreecommitdiffhomepage
path: root/libs/web
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-30 17:21:27 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-30 17:21:27 +0000
commit4f2248fadb73503731f81826f589f782dbb986ac (patch)
treea00b25f69c376502c5de0e6fcc23d5a447b542cc /libs/web
parent96e7553fa44c1f82bdd2dbb6b7501920fd09ff7f (diff)
libs/web: add placeholder support to DynamicList widgets
Diffstat (limited to 'libs/web')
-rw-r--r--libs/web/luasrc/view/cbi/dynlist.htm5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/web/luasrc/view/cbi/dynlist.htm b/libs/web/luasrc/view/cbi/dynlist.htm
index 9ca753473..387299dec 100644
--- 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]
%>
- <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">