]> git.wh0rd.org Git - tt-rss.git/commitdiff
showArticleInHeadlines: remove unused code
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 22 Mar 2016 10:41:55 +0000 (13:41 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Tue, 22 Mar 2016 10:41:55 +0000 (13:41 +0300)
js/viewfeed.js

index e6b708a2d6c051e62ff6ff9e0c47922aef024424..2873a9e29d1158e2e1eb3a87345051c1b249af1e 100755 (executable)
@@ -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);
        }