From 5ab1758d28d7de1d1fa5a3e4fb7a79e695eae21c Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 21 Aug 2013 23:08:51 +0800 Subject: [PATCH] simple toaster popup on new notification --- public/src/forum/footer.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/src/forum/footer.js b/public/src/forum/footer.js index a40670d4e8..762562978d 100644 --- a/public/src/forum/footer.js +++ b/public/src/forum/footer.js @@ -140,6 +140,12 @@ }); socket.on('event:new_notification', function() { document.querySelector('.notifications a i').className = 'icon-circle active'; + app.alert({ + title: 'New notification', + message: 'You have unread notifications.', + type: 'notify', + timeout: 2000 + }); utils.refreshTitle(); });