diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-05 14:01:21 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-09-05 14:01:21 +0200 |
commit | abd65e00aba5a2581665a689e01fe9330046f001 (patch) | |
tree | 67c27d54db34b09cef3667d85198f9a88dda77ba /js/main.js | |
parent | 14125ce67bb27b024d082738c8065e1bc7f2d377 (diff) | |
download | volse-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.js | 10 |
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' }); + }); + }); |