summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 92336880..86773ec8 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -461,6 +461,10 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
// $interval.cancel(modalIntervalHandle);
// FIXME: Do I need to setAwake(false) here?
+
+ if ($scope.modal !== undefined) {
+ $scope.modal.remove();
+ }
$interval.cancel(eventQueryHandle);
NVRDataModel.log("EventModalCtrl: paused");
if ($scope.connKey) sendCommand(17, $scope.connKey);