From: Andrew Dolgov Date: Tue, 22 Mar 2016 10:41:55 +0000 (+0300) Subject: showArticleInHeadlines: remove unused code X-Git-Tag: 16.3~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6be118fda1e976de9880fbbabb3611d3c7abe690;p=tt-rss.git showArticleInHeadlines: remove unused code --- diff --git a/js/viewfeed.js b/js/viewfeed.js index e6b708a2..2873a9e2 100755 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -273,34 +273,18 @@ function render_article(article) { function showArticleInHeadlines(id, noexpand) { try { - selectArticles("none"); - - var crow = $("RROW-" + id); - - if (!crow) return; - - var article_is_unread = crow.hasClassName("Unread"); + var row = $("RROW-" + id); + if (!row) return; if (!noexpand) - crow.removeClassName("Unread"); - crow.addClassName("active"); - - selectArticles('none'); + row.removeClassName("Unread"); - var view_mode = false; + row.addClassName("active"); - try { - view_mode = document.forms['main_toolbar_form'].view_mode; - view_mode = view_mode[view_mode.selectedIndex].value; - } catch (e) { - // - } + selectArticles('none'); markHeadline(id); - if (article_is_unread && !noexpand) - _force_scheduled_update = true; - } catch (e) { exception_error("showArticleInHeadlines", e); }