summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-10 05:22:16 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-10 05:22:16 -0400
commitd795e16b0c0256662b7ae12f3822862b109673fe (patch)
treea914237a64c547fd6ae959f44c24fc4cd6f7657b
parent9ed233cf6bc55e28695a1b7613033fb15feb0458 (diff)
oddball error fix -- need to revisit
Former-commit-id: 1cdde7cc890a2eff866b2a7e22ad7444a60d98f8
-rw-r--r--www/js/EventModalCtrl.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index e091b5f7..1731af45 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -172,6 +172,14 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
//------------------------------------------------------
function checkEvent() {
+
+ if ($scope.modalFromTimelineIsOpen == false)
+ {
+ NVRDataModel.log ("Modal was closed in timeline, cancelling timer");
+ $interval.cancel(eventQueryHandle);
+ return;
+ }
+
//console.log ("Event timer");
//console.log ("Event timer");
$scope.checkEventOn = true;
@@ -878,6 +886,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
$scope.$on('modal.removed', function (e, m) {
+ console.log ("************* REMOVE CALLED");
$interval.cancel(eventQueryHandle);
if (m.id != 'footage')
return;