mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
Merge #2523
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:
commit
745c211c4a
@ -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…
Reference in New Issue
Block a user