diff options
Diffstat (limited to 'modules/luci-mod-system/htdocs/luci-static')
-rw-r--r-- | modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js index f3275606ce..eb9d4a6d76 100644 --- a/modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js +++ b/modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js @@ -57,7 +57,7 @@ return view.extend({ o.renderWidget = function(/* ... */) { var node = form.Value.prototype.renderWidget.apply(this, arguments); - node.childNodes[1].addEventListener('keydown', function(ev) { + node.querySelector('input').addEventListener('keydown', function(ev) { if (ev.keyCode == 13 && !ev.currentTarget.classList.contains('cbi-input-invalid')) document.querySelector('.cbi-button-save').click(); }); |