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>
main
bors[bot] 2 years ago committed by GitHub
commit 745c211c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
}
});
}

Loading…
Cancel
Save