Fix bug: Wrong event opened after clicking Delete
This commit is contained in:
parent
b36bbbe0e4
commit
932831ba6c
|
@ -133,6 +133,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;
|
$scope.totalEvents = $scope.totalEvents - 1;
|
||||||
|
$scope.displayEvent(index);
|
||||||
}, function () {
|
}, function () {
|
||||||
console.log('Modal dismissed at: ' + new Date());
|
console.log('Modal dismissed at: ' + new Date());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue