luci-base: ui.js: assume select widget by default for ListValue widget
Fixes: #3973
Fixes: 2fb55e1ab
("luci-base: ui.js: fixes for radio widget type of select element")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
428e3bd6dc
commit
81effc1112
1 changed files with 1 additions and 1 deletions
|
@ -712,7 +712,7 @@ var UISelect = UIElement.extend(/** @lends LuCI.ui.Select.prototype */ {
|
||||||
else if (Array.isArray(this.options.sort))
|
else if (Array.isArray(this.options.sort))
|
||||||
keys = this.options.sort;
|
keys = this.options.sort;
|
||||||
|
|
||||||
if (this.options.widget == 'select') {
|
if (this.options.widget != 'radio' && this.options.widget != 'checkbox') {
|
||||||
frameEl.appendChild(E('select', {
|
frameEl.appendChild(E('select', {
|
||||||
'id': this.options.id ? 'widget.' + this.options.id : null,
|
'id': this.options.id ? 'widget.' + this.options.id : null,
|
||||||
'name': this.options.name,
|
'name': this.options.name,
|
||||||
|
|
Loading…
Reference in a new issue