blob: 5c3eaf88e3d3ce02243443e4bab233c1690db372 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/**
* Page-specific Javascript file. Should generally be included as a separate asset bundle in your page template.
* example: {{ assets.js('js/pages/sign-in-or-register') | raw }}
*
* This script depends on validation rules specified in pages/partials/page.js.twig.
*
* Target page: account/resend-verification
*/
$(document).ready(function() {
// TODO: Process form
$("#request-verification-email").ufForm({
validators: page.validators.resend_verification,
msgTarget: $("#alerts-page")
}).on("submitSuccess.ufForm", function() {
// Forward to login page on success
window.location.replace(site.uri.public + "/account/sign-in");
});
});
|