Skip to content
Snippets Groups Projects
Select Git revision
  • 25630a6239d85da3ec257f11a86812d6ea36f51d
  • main default protected
  • devel
  • 1.1.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
9 results

CHANGELOG.md

Blame
  • To find the state of this project's repository at the time of any of these versions, check out the tags.
    notice.js 780 B
    jQuery( document ).on( 'click', '.notice-dismiss', function() {
        var notice_name = jQuery(this).closest('div.notice').data('notice-name');
        var source = jQuery(this).closest('div.notice').data('source');
        if ('' !== notice_name) {
            jQuery.ajax({
                url: ajaxurl,
                type: 'post',
                data: {
                    action: 'wpdesk_notice_dismiss',
                    notice_name: notice_name,
                    source: source,
                },
                success: function (response) {
                }
            });
        }
    });
    
    jQuery( document ).on( 'click', '.notice-dismiss-link', function() {
        jQuery(this).closest('div.notice').data('source',jQuery(this).data('source'));
        jQuery(this).closest('div.notice').find('.notice-dismiss').click();
    });