From 72b8a002f966ddd83b2c24f2950ca90d7c80f74c Mon Sep 17 00:00:00 2001 From: dblugeon Date: Tue, 14 May 2013 19:25:41 +0200 Subject: [PATCH] close #222 : reset mention unread count during switch view via Next View Menu --- WebKit/scripts/controller/Sidebar.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WebKit/scripts/controller/Sidebar.js b/WebKit/scripts/controller/Sidebar.js index 5b453b8..48e9acd 100644 --- a/WebKit/scripts/controller/Sidebar.js +++ b/WebKit/scripts/controller/Sidebar.js @@ -194,6 +194,10 @@ function(HostApp, Paths, Cache) { var img = this.menu[part].getElementsByTagName("img")[0]; if (img.src.endsWith(img.src_active)) { var next = parts[(i+1)%parts.length]; + //we must update unread badges for mentions cf https://github.com/jeena/Bungloo/issues/222 + if(next === "mentions"){ + bungloo.mentions.setAllMentionsRead(); + } this.showContentFor(bungloo[next], this.menu[next]); return; }