(js) Fix count of selected events/tasks

pull/101/head^2
Francis Lachapelle 2015-11-26 12:11:39 -05:00
parent bb88643568
commit 2e2d8b6963
1 changed files with 2 additions and 2 deletions

View File

@ -99,10 +99,10 @@
count = 0;
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) {
count = (_.filter(Component.$tasks, function(task) { return task.selected; })).length;
count += (_.filter(Component.$tasks, function(task) { return task.selected; })).length;
}
return count;
};