Operationnal dismissAll button & code restructuring

This commit is contained in:
ClemDee
2019-06-27 11:25:31 +02:00
parent 8c2903892b
commit 0f372b2ed5
3 changed files with 57 additions and 34 deletions

View File

@@ -10,8 +10,10 @@ define([
var defaultDismiss = function (common, data) {
return function (e) {
e.preventDefault();
e.stopPropagation();
if (e) {
e.preventDefault();
e.stopPropagation();
}
common.mailbox.dismiss(data, function (err) {
if (err) { return void console.error(err); }
});