summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-05-04 21:31:38 +0200
committerJo-Philipp Wich <jo@mein.io>2020-05-04 21:31:38 +0200
commit915e446c07ca5c7338dd7b8b5805232449c08c19 (patch)
tree41dbcef68ffc969a2c02936cef0ed87a5a691868 /modules/luci-base/htdocs/luci-static
parent28cf5cd576a7d502bcbfc55c1418dd116f2210e0 (diff)
luci-base: ui.js: fix UITextfield.setValue()
Fixes: d02c26772 ("luci-base: ui.js: rework password input handling") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-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 c206e02af8..822b572a3d 100644
--- a/modules/luci-base/htdocs/luci-static/resources/ui.js
+++ b/modules/luci-base/htdocs/luci-static/resources/ui.js
@@ -368,7 +368,7 @@ var UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ {
/** @override */
setValue: function(value) {
- var inputEl = this.node.childNodes[+!!this.options.password];
+ var inputEl = this.node.querySelector('input');
inputEl.value = value;
}
});