Decrement $scope.totalEvents after deleting event

This commit is contained in:
Kyle Johnson 2015-01-21 10:29:06 -05:00
parent 2f44a45bbc
commit b36bbbe0e4
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ ZoneMinder.controller('EventsController', function($scope, Events, Console, $mod
modalInstance.result.then(function (index) { modalInstance.result.then(function (index) {
$scope.events.splice(index, 1); $scope.events.splice(index, 1);
$scope.totalEvents = $scope.totalEvents - 1;
}, function () { }, function () {
console.log('Modal dismissed at: ' + new Date()); console.log('Modal dismissed at: ' + new Date());
} }