File "customizer-button.js"

Full Path: /home/tekvhqgl/public_html/wp-content/plugins/chaty/src/components/customizer-button.js
File size: 629 bytes
MIME-type: text/plain
Charset: utf-8

const $ = window.jQuery;
export default function customizeButton() {

    $(document).on('click', '.customize-agent-button', function() {
        const $scope = $(this).parents('.chaty-channel');
        $scope.find('.customize-agent-button, .agent-button-action').toggleClass('enable');
        $scope.find('.chaty-channel-main-settings').slideToggle(200);
    });

    $(document).on('click', '.agent-channel-setting-button', function(){
        const $scope = $(this).parents('.agent-channel-setting');
        $scope.find('.agent-channel-setting-advance').slideToggle(200)
        $(this).toggleClass('enable');
    })
    
}