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=9733a182e8dc1713e27e784fa7aded553caad695;p=oweals%2Fluci.git luci-base: ui.js: use placeholder as select placeholder in DynLists Signed-off-by: Jo-Philipp Wich --- 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 {