mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-28 10:21:31 +01:00
minor: remove classes better in 'Article.setScore()'
This commit is contained in:
parent
3ff3c605b4
commit
92438716ad
@ -46,12 +46,7 @@ const Article = {
|
|||||||
pic.innerHTML = Article.getScorePic(score);
|
pic.innerHTML = Article.getScorePic(score);
|
||||||
pic.setAttribute("title", score);
|
pic.setAttribute("title", score);
|
||||||
|
|
||||||
["score-low", "score-high", "score-half-low", "score-half-high", "score-neutral"]
|
row.classList.remove('score-low', 'score-high', 'score-half-low', 'score-half-high', 'score-neutral');
|
||||||
.forEach(function(scl) {
|
|
||||||
if (row.classList.contains(scl))
|
|
||||||
row.classList.remove(scl);
|
|
||||||
});
|
|
||||||
|
|
||||||
row.classList.add(Article.getScoreClass(score));
|
row.classList.add(Article.getScoreClass(score));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user