Fix bug: Wrong event opened after clicking Delete

This commit is contained in:
Kyle Johnson 2015-01-21 11:07:29 -05:00
parent b36bbbe0e4
commit 932831ba6c
1 changed files with 1 additions and 0 deletions

View File

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