summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-01 00:11:52 +0300
committerAndrew Dolgov <[email protected]>2018-12-01 00:11:52 +0300
commite2b8c9273e09091c235959c25d8e4d8122aa6ca8 (patch)
tree685b46085db74ef5cac618ca4b623ef64f9d12c5 /js/tt-rss.js
parentc1ee7035e6060ef358fcd08a8404b414ca472bc2 (diff)
first stage of headline element handling refactoring
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js6
1 files changed, 4 insertions, 2 deletions
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;
}