# yaymail/3.4.1/assets/admin/js/notice.js

YayMail – WooCommerce Email Customizer, version 3.4.1. 29 lines.

- Page: https://pluginprobe.com/plugins/yaymail/3.4.1/code/assets/admin/js/notice.js
- Raw: https://pluginprobe.com/plugins/yaymail/3.4.1/raw/assets/admin/js/notice.js
- Modified: 2023-12-04T14:12:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yaymail/3.4.1/code/assets/admin/js/notice.js#L10-L20`.

```javascript
jQuery(document).ready(function () {
    jQuery("#yaymail-notice .yaymail-nothank").on("click", function () {
        jQuery( "#yaymail-notice .notice-dismiss" ).trigger( "click" );
    })
    jQuery("#yaymail-notice .yaymail-see-addons").on("click", function () {
        jQuery( "#yaymail-notice .notice-dismiss" ).trigger( "click" );
    })
    jQuery(document).on("click", "#yaymail-notice .notice-dismiss", function(){
        jQuery.ajax({
            dataType: 'json',
            url: yaymail_notice.admin_ajax,
            type: "post",
            data: {
            action: "yaymail_notice",
            nonce: yaymail_notice.nonce,
            },
        })
        .done(function (result) {
            if (result.success) {
                console.log("success hide notice");
            } else {
                console.log("Error", result.message);
            }
          })
          .fail(function (res) {
            console.log(res.responseText);
          });
    })
})
```
