diff --git a/www/common/notifications.js b/www/common/notifications.js index 9dfce68e4..150ec51fd 100644 --- a/www/common/notifications.js +++ b/www/common/notifications.js @@ -276,6 +276,9 @@ define([ // add getters to access simply some informations data.content.isClickable = typeof data.content.handler === "function"; data.content.isDismissible = typeof data.content.dismissHandler === "function"; + } else { + data.content.dismissHandler = defaultDismiss(common, data); + data.content.isDismissible = typeof data.content.dismissHandler === "function"; } }, remove: function (common, data) {