aboutsummaryrefslogtreecommitdiffstats
path: root/static/js/account_email_resend.js
blob: e8d2411a8ec69d986d263fcb22b826a7233ecd29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * email_resend.js for 'account/email_resend.html'
 */

$(document).ready(function() {
    // disable email field by default
    $("input#id_email").prop("disabled", true);

    // update email field when 'is_update_email' checkbox changed
    $("input#id_is_update_email").change(function(e) {
        if ($(this).prop("checked")) {
            $("input#id_email").prop("disabled", false);
        }
        else {
            $("input#id_email").prop("disabled", true);
        }
    });
});