Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
luci: Make password reveal work with passsword managers
Password managers (like LastPass etc) tend to add additional elements into the DOM for their own context menus. If this happens between the hide/reveal button and the password input, then the logic to reveal the password breaks. This change updates the onclick handler to look backward in the DOM for the first sibling that is an input, and to then toggle the password/text type on that element. This change deliberately only updates the main ui.js file, not any application files. Signed-off-by: Andrew Dodd <andrew.john.dodd@gmail.com>
- Loading branch information