Headlines.onRowChecked: fix undefined row
This commit is contained in:
parent
031a739be6
commit
7e7a15136b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue