1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00
limesurvey_ynh/sources/application/extensions/FlashMessage/assets/js/notify.js

22 lines
600 B
JavaScript
Raw Normal View History

$(document).ready(function(){
$notifycontainer=$("#notify-container").notify({
speed: 500,
custom: true,
expires: 5000
});
$.each(LS.messages,function(key, oMessage){
if(typeof oMessage.message ==="string")
{
if(typeof oMessage.type !="string")
{
oMessage.template="default-notify";
}
else
{
oMessage.template=oMessage.type+"-notify";
}
}
$notifycontainer.notify("create", oMessage.template, { message:oMessage.message});
});
});