From d26269865f633e36ab1eb1280550cbcc70dd8a4d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 19 Feb 2021 07:43:05 +0300 Subject: use .closest() instead of .up() to lookup parent by selector --- js/Article.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/Article.js') diff --git a/js/Article.js b/js/Article.js index b1d14c390..90be90f7b 100644 --- a/js/Article.js +++ b/js/Article.js @@ -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"); -- cgit v1.2.3