Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/./../js/./customer
الملفات الموجودة في هذا الـ Path:
.
..
campaign.js
campaign_statistic.js
compose.js
contact.js
dashboard.js
domain.js
email_account.js
email_template.js
form.js
group.js
inbox.js
label.js
lead_finder.js
list_builder.js
queue.js
sender.js
sent.js
settings.js
ticket.js

مشاهدة ملف: contact.js

"use strict";
$('#contacts').DataTable({
    processing: true,
    serverSide: true,
    responsive:true,
    ajax:'/contact/get',
    columns: [
        { "data": "name" },
        { "data": "email" },
        { "data": "address" },
        { "data": "city" },
        { "data": "state" },
        { "data": "zip_code" },
        { "data": "company" },
        { "data": "note" },
        { "data": "label" },
        { "data": "action" },
    ]
});

$.validator.addMethod("phone_number", function(value, element) {
    return new RegExp(/^[0-9\-\+]{9,15}$/).test(value);
}, 'Invalid phone number');


    $('#contactForm').validate({
        rules: {
            email: {
                required: true,
                email:true
            }
        },
        messages: {
            email:'Please enter email address'
        },
        errorElement: 'span',
        errorPlacement: function (error, element) {
            error.addClass('invalid-feedback');
            element.closest('.form-group').append(error);
        },
        highlight: function (element, errorClass, validClass) {
            $(element).addClass('is-invalid');
        },
        unhighlight: function (element, errorClass, validClass) {
            $(element).removeClass('is-invalid');
        }
    });



$('#forward_to_dial_code,#contact_dial_code').select2();