1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00
2523: fix JS error r=mergify[bot] a=nextgens

## What type of PR?

bug-fix

## What does this PR do?

It fixes a bug whereby one may have to click twice on the submit button depending on timing.

e.trigger() will error out on most browsers.

Co-authored-by: Florent Daigniere <nextgens@freenetproject.org>
This commit is contained in:
bors[bot] 2022-11-09 15:34:37 +00:00 committed by GitHub
commit 745c211c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,9 +132,7 @@ $('document').ready(function() {
});
$("#pw").closest("form").submit(function(event){
if (parseInt($("#pwned").val()) < 0) {
event.preventDefault();
hibpCheck($("#pw").val());
event.trigger();
}
});
}