mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-22 15:13:18 +00:00
(js) Fix count of selected events/tasks
This commit is contained in:
@@ -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