From 12ed35884f54049d7e4ebbf12408dc04204c50f9 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 25 Jun 2017 16:18:32 +0200 Subject: [PATCH] Notification object is returned when a notification is created --- assets/js/common/notifications.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/common/notifications.js b/assets/js/common/notifications.js index a6b9d406..164032dc 100644 --- a/assets/js/common/notifications.js +++ b/assets/js/common/notifications.js @@ -13,6 +13,7 @@ ComunicWeb.common.notificationSystem = { * @param {String} notifType Specify the notification type (info, danger, success, warning) * @param {Integer} notifDuration Optionnal, specify how much time the message will appear in seconds * @param {String} notifTitle The title of the notification + * @return {Object} Informations about the notification */ showNotification: function(message, notifType, notifDuration, notifTitle){ @@ -36,7 +37,7 @@ ComunicWeb.common.notificationSystem = { options.title = notifTitle; } - $.notify(options,{ + return $.notify(options,{ // settings type: notifType, delay: notifDuration*1000,