summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-07-12 09:17:14 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-12 09:17:14 +0200
commit3dcb061dcc3688c0cb761a074d33810fb6376c5b (patch)
tree6c65ec2bf979651dab6a209cf6c28b9212869fcc /modules/luci-base/htdocs/luci-static/resources
parent4b941bce402bca886ce89eee213eb0ca0bd00dbf (diff)
luci-base: ui.js: fix UISelect.setValue()
Fixes: #2852 Fixes: ce04d7f ("luci-base: fix label-to-input association in js cbi maps") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 4aac8bcfcf..6c3f29183f 100644
--- 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;
}