Load infos and notices via ping and show them with js popup

This commit is contained in:
Fabio Comuni 2011-09-05 14:01:21 +02:00
parent 14125ce67b
commit abd65e00ab
22 changed files with 222 additions and 12 deletions

View file

@ -112,6 +112,16 @@
if(notif == 0) { notif = ''; $('#notify-update').removeClass('show') } else { $('#notify-update').addClass('show') }
$('#notify-update').html(notif);
var eSysmsg = $(data).find('sysmsgs');
eSysmsg.children("notice").each(function(){
text = $(this).text();
$.jGrowl(text, { sticky: true, theme: 'notice' });
});
eSysmsg.children("info").each(function(){
text = $(this).text();
$.jGrowl(text, { sticky: false, theme: 'info' });
});
});