Skip to content

Commit 029aa63

Browse files
Captcha: Fix for latest commit
(cherry picked from commit 97f8d37)
1 parent a67252c commit 029aa63

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Smartstore.Web/wwwroot/js/smartstore.captcha.grecaptcha.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@
8181
if (typeof form.checkValidity === 'function' && !form.checkValidity()) return;
8282

8383
// jQuery unobtrusive validation
84-
const validator = $(form).data('validator');
84+
const $form = $(form);
85+
const validator = $form.data('validator');
8586
if (validator) {
86-
form.validate();
87-
if (!form.valid()) {
87+
$form.validate();
88+
if (!$form.valid()) {
8889
return;
8990
}
9091
}

0 commit comments

Comments
 (0)