1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

use .closest() instead of .up() to lookup parent by selector

This commit is contained in:
Andrew Dolgov
2021-02-19 07:43:05 +03:00
parent bec35200e9
commit d26269865f
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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");