From: Jo-Philipp Wich Date: Sun, 19 Jan 2020 14:52:13 +0000 (+0100) Subject: luci-base: ui.js: use placeholder as select placeholder in DynLists X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1d10ca9ab47971c2bc9078facc54138b1a1c148;p=oweals%2Fluci.git luci-base: ui.js: use placeholder as select placeholder in DynLists Signed-off-by: Jo-Philipp Wich (cherry picked from commit 9733a182e8dc1713e27e784fa7aded553caad695) --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 17d955507..c9dfea03c 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -1326,7 +1326,11 @@ var UIDynamicList = UIElement.extend({ }, E('div', { 'class': 'add-item' })); if (this.choices) { + if (this.options.placeholder != null) + this.options.select_placeholder = this.options.placeholder; + var cbox = new UICombobox(null, this.choices, this.options); + dl.lastElementChild.appendChild(cbox.render()); } else {