diff options
author | Andrew Dolgov <[email protected]> | 2021-02-19 07:43:05 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-19 07:43:05 +0300 |
commit | d26269865f633e36ab1eb1280550cbcc70dd8a4d (patch) | |
tree | c75e89bbe661dc5904f6e89acf40654217da84d3 /js/Article.js | |
parent | bec35200e97adabf4880a92bad40ec5bbe4848d1 (diff) |
use .closest() instead of .up() to lookup parent by selector
Diffstat (limited to 'js/Article.js')
-rw-r--r-- | js/Article.js | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |