PluginProbe
YayMail – WooCommerce Email Customizer / 3.2.2
YayMail – WooCommerce Email Customizer v3.2.2
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / assets / admin / js / notice.js

notice.js in YayMail – WooCommerce Email Customizer 3.2.2, at assets/admin/js/notice.js

29 lines 992 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function () {
2 jQuery("#yaymail-notice .yaymail-nothank").on("click", function () {
3 jQuery( "#yaymail-notice .notice-dismiss" ).trigger( "click" );
4 })
5 jQuery("#yaymail-notice .yaymail-see-addons").on("click", function () {
6 jQuery( "#yaymail-notice .notice-dismiss" ).trigger( "click" );
7 })
8 jQuery(document).on("click", "#yaymail-notice .notice-dismiss", function(){
9 jQuery.ajax({
10 dataType: 'json',
11 url: yaymail_notice.admin_ajax,
12 type: "post",
13 data: {
14 action: "yaymail_notice",
15 nonce: yaymail_notice.nonce,
16 },
17 })
18 .done(function (result) {
19 if (result.success) {
20 console.log("success hide notice");
21 } else {
22 console.log("Error", result.message);
23 }
24 })
25 .fail(function (res) {
26 console.log(res.responseText);
27 });
28 })
29 })