luci-mod-system: password.js: make event handler attachment more robust
authorJo-Philipp Wich <jo@mein.io>
Tue, 28 Apr 2020 21:33:24 +0000 (23:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 2 May 2020 21:53:02 +0000 (23:53 +0200)
commit34c06b4704383428c87e0a3c3c96ff7facfa5c46
tree2a0b39fec23a5ca5837d438a16480030f1cbc503
parent80fdf82add1598262ddb1858f45e7e6adacb5c41
luci-mod-system: password.js: make event handler attachment more robust

Do not expect a specific markup structure but use querySelector() to locate
the input element.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js