(js) Fix count of selected events/tasks
This commit is contained in:
parent
bb88643568
commit
2e2d8b6963
|
@ -99,10 +99,10 @@
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
if (Component.$events) {
|
if (Component.$events) {
|
||||||
count = (_.filter(Component.$events, function(event) { return event.selected; })).length;
|
count += (_.filter(Component.$events, function(event) { return event.selected; })).length;
|
||||||
}
|
}
|
||||||
if (Component.$tasks) {
|
if (Component.$tasks) {
|
||||||
count = (_.filter(Component.$tasks, function(task) { return task.selected; })).length;
|
count += (_.filter(Component.$tasks, function(task) { return task.selected; })).length;
|
||||||
}
|
}
|
||||||
return count;
|
return count;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue