From e2b8c9273e09091c235959c25d8e4d8122aa6ca8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 1 Dec 2018 00:11:52 +0300 Subject: first stage of headline element handling refactoring --- js/tt-rss.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/tt-rss.js') diff --git a/js/tt-rss.js b/js/tt-rss.js index 95ce23ffe..fca9dac19 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -443,10 +443,12 @@ function init_hotkey_actions() { if (row) { const cb = dijit.getEnclosingWidget( - row.getElementsByClassName("rchk")[0]); + row.select(".rchk")[0]); if (cb) { - cb.attr("checked", !cb.attr("checked")); + if (!row.hasClassName("active")) + cb.attr("checked", !cb.attr("checked")); + toggleSelectRowById(cb, "RROW-" + id); return false; } -- cgit v1.2.3-54-g00ecf