Remove the unused getConsoleEvents function
This commit is contained in:
parent
afdd9b4bfc
commit
cc0fecf252
|
@ -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];
|
||||||
|
|
Loading…
Reference in New Issue