From adcc28e3a72dfa5a40e2dc24b88964d72fa1b046 Mon Sep 17 00:00:00 2001 From: WhiteHusky Date: Sat, 12 Apr 2014 16:51:48 -0400 Subject: [PATCH 1/2] HTML5 Notifications now changes chat tabs Callback wasn't being called on click. --- chat/chat.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chat/chat.js b/chat/chat.js index ae9d650..42d2401 100644 --- a/chat/chat.js +++ b/chat/chat.js @@ -1522,6 +1522,10 @@ FList.Chat.Notifications = { body: message.substr(0,100) } ); + instance.onclick = function() { + callback(); + window.focus(); + }; setTimeout(instance.close(), 10000); }()); } From ede6d609bbf9307d71122a7af476e74509e1cb88 Mon Sep 17 00:00:00 2001 From: WhiteHusky Date: Sun, 13 Apr 2014 06:33:05 -0400 Subject: [PATCH 2/2] Slight error Forgot to kill the notification. --- chat/chat.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chat/chat.js b/chat/chat.js index 42d2401..6c07ced 100644 --- a/chat/chat.js +++ b/chat/chat.js @@ -1525,6 +1525,7 @@ FList.Chat.Notifications = { instance.onclick = function() { callback(); window.focus(); + this.cancel(); }; setTimeout(instance.close(), 10000); }());