From f1d10ca9ab47971c2bc9078facc54138b1a1c148 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 19 Jan 2020 15:52:13 +0100 Subject: [PATCH] luci-base: ui.js: use placeholder as select placeholder in DynLists Signed-off-by: Jo-Philipp Wich (cherry picked from commit 9733a182e8dc1713e27e784fa7aded553caad695) --- modules/luci-base/htdocs/luci-static/resources/ui.js | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 2.25.1