diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-21 08:00:00 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-04-21 08:00:00 -0400 |
| commit | a6f3b9bebfd66d19b38a9398ae4b7d4bec722120 (patch) | |
| tree | 1c11d0aea134c892f5bd8d683d031134b17baa17 /www/js/EventModalCtrl.js | |
| parent | d16e550500093b9f885c8c55d3ef8f6d392ce6ab (diff) | |
#606 kill modal on pause
Diffstat (limited to 'www/js/EventModalCtrl.js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 4 |
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); |
