mirror of
https://github.com/friendica/friendica
synced 2025-04-22 13:10:11 +00:00
Load infos and notices via ping and show them with js popup
This commit is contained in:
parent
14125ce67b
commit
abd65e00ab
22 changed files with 222 additions and 12 deletions
10
js/main.js
10
js/main.js
|
@ -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' });
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue