1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:15:56 +00:00

first stage of headline element handling refactoring

This commit is contained in:
Andrew Dolgov
2018-12-01 00:11:52 +03:00
parent c1ee7035e6
commit e2b8c9273e
2 changed files with 260 additions and 111 deletions

View File

@@ -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;
}