HEX
Server: Apache
System: Linux vps.rockyroadprinting.net 4.18.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User: rockyroadprintin (1011)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/rockyroadprintin/public_html/wp-content/themes/consulting/admin/assets/js/review-notice.js
(function($) {
    "use strict";
    $(document).ready(function () {
        $('body').on('click', '.add_review', function (e) {
            e.preventDefault();
            review_added_set_option('added');
            var win = window.open($(this).attr('href'), '_blank');
            win.focus();
        });

        $('body').on('click', '.skip_review', function (e) {
            e.preventDefault();
            review_added_set_option('skip');
        });
    });

    function review_added_set_option(status) {
        $('.review-message').hide();
        $.ajax({
            url: ajaxurl,
            type: "GET",
            data: 'add_review_status=' + status + '&action=stm_ajax_add_review&security=' + stm_ajax_add_review,
            success: function (data) {}
        });
    }
})(jQuery);