projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41d2df5
)
luci-base: ui.js: assume select widget by default for ListValue widget
author
Jo-Philipp Wich
<jo@mein.io>
Tue, 28 Apr 2020 13:37:02 +0000
(15:37 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000
(19:40 +0200)
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>
(cherry picked from commit
81effc111227bc65cb974829f17a45515fbe9807
)
modules/luci-base/htdocs/luci-static/resources/ui.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/ui.js
b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 72d447ec8d0a063c985b897a2980cd1d18d78af9..bcdfd7982395dcf888ea138c42cd6c212053ca78 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/ui.js
@@
-712,7
+712,7
@@
var UISelect = UIElement.extend(/** @lends LuCI.ui.Select.prototype */ {
else if (Array.isArray(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', {
'id': this.options.id ? 'widget.' + this.options.id : null,
'name': this.options.name,