showArticleInHeadlines: remove unused code

master
Andrew Dolgov 9 years ago
parent c4e211046e
commit 6be118fda1

@ -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);
}

Loading…
Cancel
Save