From 8971b920ce76d90b4724029c9801ee5139ae10b7 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Dec 2018 01:21:33 +0300 Subject: [PATCH] getSelectedArticleIds2: return unique ids setActiveArticleId: update selected prompt --- js/viewfeed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index 075b14169..ee994c942 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -793,7 +793,7 @@ function getSelectedArticleIds2() { if (getActiveArticleId()) rv.push(getActiveArticleId()); - return rv; + return rv.uniq(); } function getLoadedArticleIds() { @@ -1130,6 +1130,8 @@ function setActiveArticleId(id) { PluginHost.run(PluginHost.HOOK_ARTICLE_SET_ACTIVE, _active_article_id); } + + updateSelectedPrompt(); } function getActiveArticleId() {