From bb199783970ba785698dcad3e5ce6b10a3fd3ff6 Mon Sep 17 00:00:00 2001 From: Jeff Arnold Date: Mon, 21 Jan 2013 14:43:26 -0500 Subject: [PATCH] Reset the new message count whenever the user mouses over the window (imported from commit 5813398dbc59acc9f9e53c1e0631fc7d327de50d) --- zephyr/static/js/notifications.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zephyr/static/js/notifications.js b/zephyr/static/js/notifications.js index 101bd1652f..f838a88632 100644 --- a/zephyr/static/js/notifications.js +++ b/zephyr/static/js/notifications.js @@ -37,6 +37,9 @@ exports.initialize = function () { }); }).blur(function () { window_has_focus = false; + }).mouseover(function () { + new_message_count = 0; + document.title = domain + " - Humbug"; }); if (!window.webkitNotifications) {