From 932831ba6cbd9ed2e517d5deabd6a600ae515ea5 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Wed, 21 Jan 2015 11:07:29 -0500 Subject: [PATCH] Fix bug: Wrong event opened after clicking Delete --- web/skins/bootstrap/js/controllers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/web/skins/bootstrap/js/controllers.js b/web/skins/bootstrap/js/controllers.js index 57618ec45..0d126df67 100644 --- a/web/skins/bootstrap/js/controllers.js +++ b/web/skins/bootstrap/js/controllers.js @@ -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()); }