HEX
Server: Apache
System: Linux distracted-cartwright 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64
User: hvmbertogarza.com_s2ctmc9wn9 (10011)
PHP: 8.3.30
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/hvmbertogarza.com/httpdocs/wp-content/plugins/wp-whatsapp/assets/js/admin.js
jQuery(document).ready(function() {
    jQuery('#njt-wa-ads').click(function() {
        jQuery.ajax({
            url: ajaxurl,
            type: 'POST',
            dataType: 'json',
            data: {
                'action': 'njt_wa_ads_save',
                'nonce': window.njt_admin_ads.nonce
            }
        }).done(function(result) {
            if (result.success) {
                jQuery('#njt-wa-ads-wrapper').hide('slow')
            } else {
                console.log("Error", result.data.status)
            }
        });
    })
});