showArticleInHeadlines: remove unused code
This commit is contained in:
parent
c4e211046e
commit
6be118fda1
1 changed files with 5 additions and 21 deletions
|
@ -273,34 +273,18 @@ function render_article(article) {
|
||||||
function showArticleInHeadlines(id, noexpand) {
|
function showArticleInHeadlines(id, noexpand) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
selectArticles("none");
|
var row = $("RROW-" + id);
|
||||||
|
if (!row) return;
|
||||||
var crow = $("RROW-" + id);
|
|
||||||
|
|
||||||
if (!crow) return;
|
|
||||||
|
|
||||||
var article_is_unread = crow.hasClassName("Unread");
|
|
||||||
|
|
||||||
if (!noexpand)
|
if (!noexpand)
|
||||||
crow.removeClassName("Unread");
|
row.removeClassName("Unread");
|
||||||
crow.addClassName("active");
|
|
||||||
|
row.addClassName("active");
|
||||||
|
|
||||||
selectArticles('none');
|
selectArticles('none');
|
||||||
|
|
||||||
var view_mode = false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
view_mode = document.forms['main_toolbar_form'].view_mode;
|
|
||||||
view_mode = view_mode[view_mode.selectedIndex].value;
|
|
||||||
} catch (e) {
|
|
||||||
//
|
|
||||||
}
|
|
||||||
|
|
||||||
markHeadline(id);
|
markHeadline(id);
|
||||||
|
|
||||||
if (article_is_unread && !noexpand)
|
|
||||||
_force_scheduled_update = true;
|
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("showArticleInHeadlines", e);
|
exception_error("showArticleInHeadlines", e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue