mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 10:45:56 +00:00
use .closest() instead of .up() to lookup parent by selector
This commit is contained in:
@@ -63,7 +63,7 @@ const Article = {
|
||||
}
|
||||
},
|
||||
setScore: function (id, pic) {
|
||||
const row = pic.up("div[id*=RROW]");
|
||||
const row = pic.closest("div[id*=RROW]");
|
||||
|
||||
if (row) {
|
||||
const score_old = row.getAttribute("data-score");
|
||||
|
||||
Reference in New Issue
Block a user