aboutsummaryrefslogtreecommitdiffstats
path: root/js/main.js
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-09-05 14:01:21 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-09-05 14:01:21 +0200
commitabd65e00aba5a2581665a689e01fe9330046f001 (patch)
tree67c27d54db34b09cef3667d85198f9a88dda77ba /js/main.js
parent14125ce67bb27b024d082738c8065e1bc7f2d377 (diff)
downloadvolse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.tar.gz
volse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.tar.bz2
volse-hubzilla-abd65e00aba5a2581665a689e01fe9330046f001.zip
Load infos and notices via ping and show them with js popup
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 30bf8a3b7..328b1f231 100644
--- a/js/main.js
+++ b/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' });
+ });
+
});