| @@ -1,0 +1,14 @@ | ||
| 1 | +(function($) { | |
| 2 | + "use strict"; | |
| 3 | + $( document ).ready( function () { | |
| 4 | + $("body").on("click",".notice.is-dismissible",function(e){ | |
| 5 | + var data = { | |
| 6 | + 'action': 'yeekit_dismiss_noty', | |
| 7 | + 'id': $(this).data('id'), | |
| 8 | + 'nonce': yeekit_list_addons.nonce, | |
| 9 | + }; | |
| 10 | + $.post(ajaxurl, data, function() { | |
| 11 | + }); | |
| 12 | + }) | |
| 13 | + }) | |
| 14 | +})(jQuery); | |