Success messages on bulk actions

- added message for all bulk actions except trash related ones
- fixed issue with mailpoet notice and react router
This commit is contained in:
Jonathan Labreuille
2015-10-21 19:14:51 +02:00
parent dcb094fcd1
commit 50e888913c
6 changed files with 117 additions and 17 deletions

View File

@@ -121,6 +121,22 @@ define('notice', ['mailpoet', 'jquery'], function(MailPoet, jQuery) {
// set message
this.setMessage(this.options.message);
// position notice
this.element.insertAfter(jQuery('h2.title'));
// set class name
switch(this.options.type) {
case 'success':
this.element.addClass('updated');
break;
case 'system':
this.element.addClass('update-nag');
break;
case 'error':
this.element.addClass('error');
break;
}
// make the notice appear
this.element.fadeIn(200);