projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/web: support placeholder attribute for comboboxes, fix validation quirks with...
[project/luci.git]
/
libs
/
web
/
luasrc
/
view
/
cbi
/
value.htm
diff --git
a/libs/web/luasrc/view/cbi/value.htm
b/libs/web/luasrc/view/cbi/value.htm
index
19715a5
..
d1a7bea
100644
(file)
--- a/
libs/web/luasrc/view/cbi/value.htm
+++ b/
libs/web/luasrc/view/cbi/value.htm
@@
-18,6
+18,8
@@
-%>
}, '<%- if not self.rmempty and not self.optional then -%>
<%-: -- Please choose -- -%>
+ <%- elseif self.placeholder then -%>
+ <%-= pcdata(self.placeholder) -%>
<%- end -%>', '
<%- if self.combobox_manual then -%>
<%-=self.combobox_manual-%>