mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
21 lines
600 B
JavaScript
21 lines
600 B
JavaScript
$(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});
|
|
});
|
|
});
|