Remove the unused getConsoleEvents function

This commit is contained in:
Kyle Johnson 2015-02-11 11:32:19 -05:00
parent afdd9b4bfc
commit cc0fecf252
1 changed files with 0 additions and 8 deletions

View File

@ -257,15 +257,7 @@ ZoneMinder.controller('ConsoleController', function($scope, Console) {
$scope.grid = true; $scope.grid = true;
$scope.gridButton = 'glyphicon-th'; $scope.gridButton = 'glyphicon-th';
// Ask the API for events that have happened in the last week
Console.getConsoleEvents('1 week').then(function(results) {
// For each result, assign it to $scope[Counts$monitorId]
for (var key in results['data']['results']) {
var mid = key;
var count = results['data']['results'][key];
$scope['Counts' + mid] = count;
} }
});
$scope.delete = function (index) { $scope.delete = function (index) {
var monitor = $scope.monitors[index]; var monitor = $scope.monitors[index];