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>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit0c556476f057111d8c3fa966b9f9455a763351a6
tree08f73db428f816b3d1a5bd1222f4f2d855ba647c
parent99641410822136f64ebf5e79a587bdfab73ecbfc
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>
(cherry picked from commit 34c06b4704383428c87e0a3c3c96ff7facfa5c46)
modules/luci-mod-system/htdocs/luci-static/resources/view/system/password.js