summaryrefslogtreecommitdiffstats
path: root/packages/meteor-useraccounts-core/lib/templates_helpers/at_resend_verification_email_link.js
blob: 5587900c6869197a8e3fadcd76bca5bfe2c08a53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
AT.prototype.atResendVerificationEmailLinkHelpers = {
    disabled: function () {
        return AccountsTemplates.disabled();
    },
    resendVerificationEmailLink: function () {
        return AccountsTemplates.getRoutePath("resendVerificationEmail");
    },
    preText: function(){
        return T9n.get(AccountsTemplates.texts.resendVerificationEmailLink_pre, markIfMissing=false);
    },
    linkText: function(){
        return T9n.get(AccountsTemplates.texts.resendVerificationEmailLink_link, markIfMissing=false);
    },
    suffText: function(){
        return T9n.get(AccountsTemplates.texts.resendVerificationEmailLink_suff, markIfMissing=false);
    },
};

AT.prototype.atResendVerificationEmailLinkEvents = {
    "click #at-resend-verification-email": function(event, t) {
        event.preventDefault();
        AccountsTemplates.linkClick('resendVerificationEmail');
    },
};