(js) Fix count of selected events/tasks

This commit is contained in:
Francis Lachapelle 2015-11-26 12:11:39 -05:00
parent bb88643568
commit 2e2d8b6963

View file

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