diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-09 11:25:25 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-08-09 11:25:25 +0000 |
commit | b35ab62adac0b69630daad0c71e502acbb81b49d (patch) | |
tree | 1abab32dc644ee810d45d3539c20a47292040435 /libs/web/luasrc | |
parent | 6c66d913367af8e468244762b83e274f5ea93e92 (diff) |
libs/web: support placeholder attribute for comboboxes, fix validation quirks with input->select transition in comboboxes
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/view/cbi/value.htm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/web/luasrc/view/cbi/value.htm b/libs/web/luasrc/view/cbi/value.htm index 19715a579..d1a7bea5c 100644 --- 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-%> |