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:
9aa5077
)
luci-base: ui.js: fix UISelect.getValue()
author
Jo-Philipp Wich
<jo@mein.io>
Thu, 11 Jul 2019 12:39:42 +0000
(14:39 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Thu, 11 Jul 2019 12:40:51 +0000
(14:40 +0200)
Fixes: #2852
Fixes:
ce04d7f04
("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 69698de308858906ef4fe844057e0de815b934cc..4aac8bcfcf21c31edb3e6dd923ccf24267e2dee1 100644
(file)
--- 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++)