Headlines.onRowChecked: fix undefined row

This commit is contained in:
Andrew Dolgov 2018-12-04 10:32:57 +03:00
parent 031a739be6
commit 7e7a15136b
1 changed files with 2 additions and 2 deletions

View File

@ -753,14 +753,14 @@ define(["dojo/_base/declare"], function (declare) {
return rv;
},
onRowChecked: function (elem) {
const row = elem.domNode.up("div[id*=RROW]");
// do not allow unchecking active article checkbox
if (row.hasClassName("active")) {
elem.attr("checked", 1);
return;
}
const row = elem.domNode.up("div[id*=RROW]");
if (elem.attr("checked")) {
row.addClassName("Selected");
} else {