luci-base: ui.js: use placeholder as select placeholder in DynLists
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
4c52718dea
commit
9733a182e8
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue