luci-base: ui.js: use placeholder as select placeholder in DynLists

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 9733a182e8)
This commit is contained in:
Jo-Philipp Wich 2020-01-19 15:52:13 +01:00
parent b3815b00e2
commit f1d10ca9ab

View file

@ -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 {