From a6f3b9bebfd66d19b38a9398ae4b7d4bec722120 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 21 Apr 2018 08:00:00 -0400 Subject: #606 kill modal on pause --- www/js/EventModalCtrl.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'www/js/EventModalCtrl.js') 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); -- cgit v1.2.3