Skip to content

Commit

Permalink
Merge pull request #252 from N6PRK/login
Browse files Browse the repository at this point in the history
Support pressing enter on the keyboard for login
  • Loading branch information
jxmx authored Oct 22, 2024
2 parents ec7994f + 7195b43 commit b26d05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<div class="modal fade" id="loginModal" tabindex="-1" aria-labelledby="loginModalLabel"
aria-hidden="true" data-bs-backdrop="static" data-bs-target="#staticBackdrop">
<div class="modal-dialog">
<form id="loginBox">
<form id="loginBox" onsubmit="doLogin(); return false;">
<div id="login-modal-content" class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="loginModalLabel">Login</h5>
Expand Down Expand Up @@ -104,7 +104,7 @@ <h5 class="modal-title" id="loginModalLabel">Login</h5>
</div>
<div id="login-modal-footer" class="modal-footer mt-2">
<input type="hidden" id="login-action" name="action" value="login">
<button type="button" class="btn btn-secondary" onclick="doLogin()">Login</button>
<button type="submit" class="btn btn-secondary">Login</button>
<button type="button" class="btn btn-secondary" onclick="clearLogin()" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
Expand Down

0 comments on commit b26d05e

Please sign in to comment.