projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b941bc
)
luci-base: ui.js: fix UISelect.setValue()
author
Jo-Philipp Wich
<jo@mein.io>
Fri, 12 Jul 2019 07:17:14 +0000
(09:17 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Fri, 12 Jul 2019 07:17:14 +0000
(09:17 +0200)
Fixes: #2852
Fixes: ce04d7f ("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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 4aac8bcfcf21c31edb3e6dd923ccf24267e2dee1..6c3f29183fec9cf80c78b9d829daead2d02bac41 100644
(file)
--- a/
modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/
modules/luci-base/htdocs/luci-static/resources/ui.js
@@
-320,8
+320,8
@@
var UISelect = UIElement.extend({
if (value == null)
value = '';
- for (var i = 0; i < this.node.options.length; i++)
- this.node.
options[i].selected = (this.node
.options[i].value == value);
+ for (var i = 0; i < this.node.
firstChild.
options.length; i++)
+ this.node.
firstChild.options[i].selected = (this.node.firstChild
.options[i].value == value);
return;
}