luci-base: ui.js: modal dialog tweaks
authorJo-Philipp Wich <jo@mein.io>
Sun, 5 Feb 2023 18:41:20 +0000 (19:41 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 5 Feb 2023 19:22:44 +0000 (20:22 +0100)
commitc9939a83e72beb32dd1e11b07139714e2ae91623
tree1981bb8add7b641d5a1b7b1dda565e5948a333b0
parent8db3e0e70fe0986a7c4c60f998c583e28bd0e2f0
luci-base: ui.js: modal dialog tweaks

 - Automatically focus modal dialog frame
 - Close modal dialog on pressing escape key

Fixes: #4609, #6205
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js