Notification object is returned when a notification is created

This commit is contained in:
Pierre 2017-06-25 16:18:32 +02:00
parent 090b8bd77a
commit 12ed35884f

View File

@ -13,6 +13,7 @@ ComunicWeb.common.notificationSystem = {
* @param {String} notifType Specify the notification type (info, danger, success, warning) * @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 {Integer} notifDuration Optionnal, specify how much time the message will appear in seconds
* @param {String} notifTitle The title of the notification * @param {String} notifTitle The title of the notification
* @return {Object} Informations about the notification
*/ */
showNotification: function(message, notifType, notifDuration, notifTitle){ showNotification: function(message, notifType, notifDuration, notifTitle){
@ -36,7 +37,7 @@ ComunicWeb.common.notificationSystem = {
options.title = notifTitle; options.title = notifTitle;
} }
$.notify(options,{ return $.notify(options,{
// settings // settings
type: notifType, type: notifType,
delay: notifDuration*1000, delay: notifDuration*1000,