{"size": 887, "ext": "js", "max_stars_repo_path": "Modules/Owner/Resources/assets/js/validate_owner_bank.js", "max_stars_repo_name": "toantd14/sample_app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Modules/Owner/Resources/assets/js/validate_owner_bank.js", "max_issues_repo_name": "toantd14/sample_app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Modules/Owner/Resources/assets/js/validate_owner_bank.js", "max_forks_repo_name": "toantd14/sample_app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.3428571429, "max_line_length": 59, "alphanum_fraction": 0.373167982}
$(document).ready(function () {
    $('#modalSuccess').modal('show');
    $.extend($.validator.messages, {
        required: messageRequired,
    });

    $("#form-owner-bank").validate({
        rules: {
            "bank_name": {
                required: true,
            },
            "branch_name": {
                required: true,
            },
            "account_type": {
                required: true,
            },
            "account_name": {
                required: true,
            },
            "account_kana": {
                required: true,
            },
        },
        submitHandler: function (form) {
            if ($("#form-owner-bank").valid()) {
                $('#modalConfirm').modal('show');
                $('#btn-confirm').on('click', function () {
                    form.submit();
                })
            }
        }
    });
});
