From e9cbae67b352d8da1bb764cdc5046b3295be231e Mon Sep 17 00:00:00 2001 From: Jeff Arnold Date: Tue, 12 Mar 2013 16:03:42 -0400 Subject: [PATCH] Make clicking notifications give focus to browser Resolves Trac #1081 (imported from commit d5546ecda53a57b6dbbfc65db923432f8e4cc7b2) --- zephyr/static/js/notifications.js | 1 + 1 file changed, 1 insertion(+) diff --git a/zephyr/static/js/notifications.js b/zephyr/static/js/notifications.js index 8dff3aedb9..c7e9dc4afe 100644 --- a/zephyr/static/js/notifications.js +++ b/zephyr/static/js/notifications.js @@ -151,6 +151,7 @@ function process_desktop_notification(message) { notification_object.onclick = function () { notification_object.cancel(); delete notice_memory[key]; + window.focus(); }; notification_object.onclose = function () { delete notice_memory[key];