Merge pull request #1489 from mailpoet/migration-notice

Migration notice [MAILPOET-1492]
This commit is contained in:
Michelle Shull
2018-09-20 14:13:17 -04:00
committed by GitHub
10 changed files with 153 additions and 39 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',