1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:25:56 +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

View File

@@ -1093,7 +1093,7 @@ const Headlines = {
return rv;
},
onRowChecked: function (elem) {
const row = elem.domNode.up("div[id*=RROW]");
const row = elem.domNode.closest("div[id*=RROW]");
// do not allow unchecking active article checkbox
if (row.hasClassName("active")) {