HEX
Server: Apache/2.4.41
System: Linux mainweb 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC 2024 x86_64
User: nationalmedicaregrp (1119)
PHP: 8.3.7
Disabled: exec,passthru,shell_exec,system,popen,proc_open,pcntl_exec
Upload Files
File: /home/commandorestoration/public_html/wp-content/themes/hestia/assets/js/admin/welcome-notice.js
/**
 * Main scripts file for the welcome notice.
 */

/* global hestiaWelcomeNotice */

(function ($) {
    $(document).ready(function () {
        $(document).on('click', '.notice.ti-about-notice .notice-dismiss, .notice.ti-about-notice .ti-return-dashboard span', function () {
            $.ajax({
                async: true,
                type: 'POST',
                data: {
                    action: 'ti_about_dismiss_welcome_notice',
                    nonce: window.hestiaWelcomeNotice.dismissNonce
                },
                url: window.hestiaWelcomeNotice.ajaxurl,
                success: function ( response ) {
                    console.log(response);
                    $(' .ti-about-notice ').fadeOut();
                }
            });
        });
    });
})(jQuery);