mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Notification object is returned when a notification is created
This commit is contained in:
parent
090b8bd77a
commit
12ed35884f
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user