| @@ -1 +1,14 @@ | ||
| 1 | -import './autocomplete_steps' | |
| 1 | +import './autocomplete_steps' | |
| 2 | + | |
| 3 | +(function ($) { | |
| 4 | + | |
| 5 | + $(document).on('ready', function () { | |
| 6 | + const nonce = $('#hts_close_omnisend_nonce').val(); | |
| 7 | + $('.hts-omnisend .notice-dismiss').on('click', function() { | |
| 8 | + $.post(ajaxurl, { action: 'hostinger_dismiss_omnisend_notice', nonce: nonce }); | |
| 9 | + $('.hts-omnisend').remove(); | |
| 10 | + }); | |
| 11 | + | |
| 12 | + }); | |
| 13 | + | |
| 14 | +})(jQuery); | |