mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-27 18:01:00 +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.setAttribute("title", score);
|
||||
|
||||
["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.remove('score-low', 'score-high', 'score-half-low', 'score-half-high', 'score-neutral');
|
||||
row.classList.add(Article.getScoreClass(score));
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user