From 7a215f9de9d6ee4f9bb558d00f33f15eaee81ab1 Mon Sep 17 00:00:00 2001 From: Crupuk Date: Thu, 19 Jan 2017 11:41:30 +0100 Subject: [PATCH 1/2] Switch to FreshRss tab Switch to FreshRss tab when notification is clicked and close notification --- p/scripts/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p/scripts/main.js b/p/scripts/main.js index 14e0c5be5..4799bad45 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -935,6 +935,8 @@ function notifs_html5_show(nb) { notification.onclick = function() { window.location.reload(); + window.focus(); + notification.close(); }; if (context.html5_notif_timeout !== 0) { From c281d6a43c45c955151d51a6303f38d0000aa488 Mon Sep 17 00:00:00 2001 From: Crupuk Date: Mon, 23 Jan 2017 09:05:13 +0100 Subject: [PATCH 2/2] Update main.js --- p/scripts/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p/scripts/main.js b/p/scripts/main.js index 4799bad45..ff1753b5f 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -935,8 +935,8 @@ function notifs_html5_show(nb) { notification.onclick = function() { window.location.reload(); - window.focus(); - notification.close(); + window.focus(); + notification.close(); }; if (context.html5_notif_timeout !== 0) {