HEX
Server: Apache/2.4.62 (Debian)
System: Linux plxsite 6.8.0-47-generic #47-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 27 21:40:26 UTC 2024 x86_64
User: root (0)
PHP: 8.1.30
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/image-alt-text/assets/js/iat-global.js
/* review remind me later */
jQuery(document).on('click', '#remind-me-later', function (e) {
    e.preventDefault();
    var data = {
        action: 'iat_remind_me_later'
    }
    jQuery.ajax({
        type: "POST",
        url: ajaxurl,
        data: data,
        success: function (res) {
            var res = JSON.parse(res);
            if (res.flg == '1') {
                jQuery('.review-notice').hide();
            } else {
                alert(res.message);
            }
        }
    });
});

/* review do not show again */
jQuery(document).on('click', '#do-not-show-again', function (e) {
    e.preventDefault();
    var data = {
        action: 'iat_do_not_show_again'
    }
    jQuery.ajax({
        type: "POST",
        url: ajaxurl,
        data: data,
        success: function (res) {
            var res = JSON.parse(res);
            if (res.flg == '1') {
                jQuery('.review-notice').hide();
            } else {
                alert(res.message);
            }
        }
    });

});