From 9733a182e8dc1713e27e784fa7aded553caad695 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 --- 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 75563c11c..08196117b 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