mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
web: refactoring
This commit is contained in:
@@ -40,9 +40,9 @@ export function main() {
|
||||
}, false);
|
||||
|
||||
tools.el.setOnClick($("login-button"), __login);
|
||||
$("user-input").onkeyup = $("passwd-input").onkeyup = $("code-input").onkeyup = function(event) {
|
||||
if (event.code === "Enter") {
|
||||
event.preventDefault();
|
||||
$("user-input").onkeyup = $("passwd-input").onkeyup = $("code-input").onkeyup = function(ev) {
|
||||
if (ev.code === "Enter") {
|
||||
ev.preventDefault();
|
||||
$("login-button").click();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user