Create permanent notices

[MAILPOET-1492]
This commit is contained in:
Pavel Dohnal
2018-09-04 10:46:50 +02:00
parent 21af85aee6
commit 4a641ba94e
6 changed files with 32 additions and 10 deletions

View File

@@ -1,8 +1,8 @@
import jQuery from 'jquery';
jQuery(($) => {
$(document).on('click', '.notice-php-warning .notice-dismiss', function xyz() {
const type = $(this).closest('.notice-php-warning').data('notice');
$(document).on('click', '.mailpoet-dismissible-notice .notice-dismiss', function dismiss() {
const type = $(this).closest('.mailpoet-dismissible-notice').data('notice');
$.ajax(window.ajaxurl,
{
type: 'POST',