What? Something happened in the last 4 years, can't recall.

This commit is contained in:
Joachim 2018-08-25 09:25:31 +02:00
parent 02b5c74953
commit 0a91f03c4c

View File

@ -157,7 +157,7 @@ mod.controller('PouleViewerCtrl', ['$scope', '$timeout', '$location', '$cookies'
}
//sort the avglaptimes
sumlaptimes.sort();
sumlaptimes.reverse();
//sumlaptimes.reverse();
//cut off everything but two
var removeThisMany = 2;
@ -189,7 +189,7 @@ mod.controller('PouleViewerCtrl', ['$scope', '$timeout', '$location', '$cookies'
}
//sort the avglaptimes
sumlaptimes.sort();
sumlaptimes.reverse();
// sumlaptimes.reverse();
//cut off everything but two
var removeThisMany = 2;
sumlaptimes.splice(removeThisMany, sumlaptimes.length-removeThisMany);
@ -221,7 +221,7 @@ mod.controller('PouleViewerCtrl', ['$scope', '$timeout', '$location', '$cookies'
//do times things: keep refreshing
//TODO this refresh shouldn't just reset the variable, it should overwrite team's times cleverly...
$scope.refreshTimer = $interval($scope.refreshTeamsForPoule, 2000);
$scope.refreshTimer = $interval($scope.refreshTeamsForPoule, 5000);
// Cancel timer on destroying controller
$scope.$on('$destroy', function() {
$interval.cancel($scope.refreshTimer);