From 2e2d8b69635a61b4ae90013408011afe15565453 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Thu, 26 Nov 2015 12:11:39 -0500 Subject: [PATCH] (js) Fix count of selected events/tasks --- UI/WebServerResources/js/Scheduler/Component.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index 8fc6bc955..f5b29c69f 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -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; };