diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-19 15:52:13 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-19 16:15:22 +0100 |
commit | 9733a182e8dc1713e27e784fa7aded553caad695 (patch) | |
tree | 14f8b4c6eaea6e4bfe4fccee678458d28db73ddf /modules/luci-base | |
parent | 4c52718deac9d9259bbf2850bea743d9f3b727f3 (diff) |
luci-base: ui.js: use placeholder as select placeholder in DynLists
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |