What? Something happened in the last 4 years, can't recall.
This commit is contained in:
parent
02b5c74953
commit
0a91f03c4c
@ -157,7 +157,7 @@ mod.controller('PouleViewerCtrl', ['$scope', '$timeout', '$location', '$cookies'
|
|||||||
}
|
}
|
||||||
//sort the avglaptimes
|
//sort the avglaptimes
|
||||||
sumlaptimes.sort();
|
sumlaptimes.sort();
|
||||||
sumlaptimes.reverse();
|
//sumlaptimes.reverse();
|
||||||
|
|
||||||
//cut off everything but two
|
//cut off everything but two
|
||||||
var removeThisMany = 2;
|
var removeThisMany = 2;
|
||||||
@ -189,7 +189,7 @@ mod.controller('PouleViewerCtrl', ['$scope', '$timeout', '$location', '$cookies'
|
|||||||
}
|
}
|
||||||
//sort the avglaptimes
|
//sort the avglaptimes
|
||||||
sumlaptimes.sort();
|
sumlaptimes.sort();
|
||||||
sumlaptimes.reverse();
|
// sumlaptimes.reverse();
|
||||||
//cut off everything but two
|
//cut off everything but two
|
||||||
var removeThisMany = 2;
|
var removeThisMany = 2;
|
||||||
sumlaptimes.splice(removeThisMany, sumlaptimes.length-removeThisMany);
|
sumlaptimes.splice(removeThisMany, sumlaptimes.length-removeThisMany);
|
||||||
@ -221,7 +221,7 @@ mod.controller('PouleViewerCtrl', ['$scope', '$timeout', '$location', '$cookies'
|
|||||||
|
|
||||||
//do times things: keep refreshing
|
//do times things: keep refreshing
|
||||||
//TODO this refresh shouldn't just reset the variable, it should overwrite team's times cleverly...
|
//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
|
// Cancel timer on destroying controller
|
||||||
$scope.$on('$destroy', function() {
|
$scope.$on('$destroy', function() {
|
||||||
$interval.cancel($scope.refreshTimer);
|
$interval.cancel($scope.refreshTimer);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user