Upgrade notice classes from deprecated ones [MAILPOET-733]
This commit is contained in:
@@ -142,13 +142,13 @@ define('notice', ['mailpoet', 'jquery'], function(MailPoet, jQuery) {
|
|||||||
// set class name
|
// set class name
|
||||||
switch (this.options.type) {
|
switch (this.options.type) {
|
||||||
case 'success':
|
case 'success':
|
||||||
this.element.addClass('updated');
|
this.element.addClass('notice notice-success');
|
||||||
break;
|
break;
|
||||||
case 'system':
|
case 'system':
|
||||||
this.element.addClass('update-nag');
|
this.element.addClass('notice notice-warning');
|
||||||
break;
|
break;
|
||||||
case 'error':
|
case 'error':
|
||||||
this.element.addClass('error');
|
this.element.addClass('notice notice-error');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ define('notice', ['mailpoet', 'jquery'], function(MailPoet, jQuery) {
|
|||||||
// single id
|
// single id
|
||||||
jQuery('[data-id="' + all + '"]').trigger('close');
|
jQuery('[data-id="' + all + '"]').trigger('close');
|
||||||
} else {
|
} else {
|
||||||
jQuery('.mailpoet_notice.updated:not([id]), .mailpoet_notice.error:not([id])')
|
jQuery('.mailpoet_notice.notice-success:not([id]), .mailpoet_notice.notice-error:not([id])')
|
||||||
.trigger('close');
|
.trigger('close');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user