mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-13 15:57:12 +00:00
(js) Fix count of selected events/tasks
This commit is contained in:
1 parent
bb88643568
commit
2e2d8b6963
1 file changed
+2
-2
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user