Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/public/uploads/../js/.././././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

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

"use strict";
$(document).on('click', '.emailbox-unread', function (e) {
    e.preventDefault();
    $(this).removeClass('emailbox-unread').addClass('emailbox-read').attr('title', 'Already Read');
    const id = $(this).attr('data-message-id');
    $.ajax({
        method: 'post',
        url: 'customer/emailbox/inbox/change-status',
        data: {_token: '{{csrf_token()}}', id: id, status: 'read'},
        success: function (res) {
            if (res.status == 'success') {
                notify('success', res.message);
            } else {
                notify('danger', res.message);
            }
        }
    })
})

$('#checkbox-toggle').on('click', function (e) {
    e.preventDefault();
    if ($(this).attr('data-checked') == 'false') {
        $(this).attr('data-checked', 'true');
        $(this).find('i').removeClass('fa-square').addClass('fa-check-square');
    } else {
        $(this).attr('data-checked', 'false');
        $(this).find('i').addClass('fa-square').removeClass('fa-check-square');
    }

    $('.check-single').click();
})

$('#move-trash').on('click', function (e) {
    const classes = document.getElementsByClassName("check-single");
    let totalIds = [];
    let ids = [];
    for (var i = 0; i < classes.length; i++) {
        if ($(classes.item(i)).is(':checked'))
            ids[i] = $(classes.item(i)).attr('data-id');
    }
    totalIds['ids'] = ids;
    $(this).attr('data-input', JSON.stringify(Object.assign({}, totalIds))).modal('show');

});
$(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20});