mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-21 20:12:33 +03:00
Fix form submit, preventing login.
This commit is contained in:
parent
80ce35b133
commit
5baf7951a1
1 changed files with 5 additions and 0 deletions
|
@ -91,6 +91,11 @@
|
|||
</script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('form').on('submit', function(e) {
|
||||
e.preventDefault();
|
||||
$("#btn_login").trigger('click');
|
||||
});
|
||||
|
||||
$("#btn_login").click(function () {
|
||||
const username = $("#username").val();
|
||||
const password = $("#password").val();
|
||||
|
|
Loading…
Add table
Reference in a new issue