getSelectedArticleIds2: return unique ids

setActiveArticleId: update selected prompt
This commit is contained in:
Andrew Dolgov 2018-12-01 01:21:33 +03:00
parent c155a9e1ef
commit 8971b920ce
1 changed files with 3 additions and 1 deletions

View File

@ -793,7 +793,7 @@ function getSelectedArticleIds2() {
if (getActiveArticleId()) if (getActiveArticleId())
rv.push(getActiveArticleId()); rv.push(getActiveArticleId());
return rv; return rv.uniq();
} }
function getLoadedArticleIds() { function getLoadedArticleIds() {
@ -1130,6 +1130,8 @@ function setActiveArticleId(id) {
PluginHost.run(PluginHost.HOOK_ARTICLE_SET_ACTIVE, _active_article_id); PluginHost.run(PluginHost.HOOK_ARTICLE_SET_ACTIVE, _active_article_id);
} }
updateSelectedPrompt();
} }
function getActiveArticleId() { function getActiveArticleId() {