summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-07-11 14:39:42 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-11 14:40:51 +0200
commit43043a46a3be1576bce672d90bcda0be1d6c45a5 (patch)
tree36902597e4f737bfc67b3f461ee95cf37d94d48b /modules/luci-base
parent9aa507790e8a75ab8f52e267e29059a080d55122 (diff)
luci-base: ui.js: fix UISelect.getValue()
Fixes: #2852 Fixes: ce04d7f04 ("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')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/ui.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js
index 69698de308..4aac8bcfcf 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -305,7 +305,7 @@ var UISelect = UIElement.extend({
getValue: function() {
if (this.options.widget == 'select')
- return this.node.value;
+ return this.node.firstChild.value;
var radioEls = frameEl.querySelectorAll('input[type="radio"]');
for (var i = 0; i < radioEls.length; i++)