Updated layout and poll

This commit is contained in:
Luke Vella 2015-02-03 12:14:04 +01:00
parent 24a1629fe1
commit d04cb14e74
11 changed files with 61 additions and 39 deletions

View file

@ -49,7 +49,7 @@ angular.module('rallly')
scope.selectedDate = function(index){
datesCount[index] = 0;
for (var i = 0; i < scope.event.participants.length; i++){
if (scope.event.participants[i].dates[index]) datesCount[index]++;
if (scope.event.participants[i].votes[index]) datesCount[index]++;
}
return datesCount[index];
}