summaryrefslogtreecommitdiff
path: root/www/js/EventModalCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-07-10 11:38:01 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-07-10 11:38:01 -0400
commit52bda7938480d4aa6a7f85c4fd3be11c11e9f559 (patch)
tree6263d74545c76b4911cd428ed70466b1d9ad8b86 /www/js/EventModalCtrl.js
parent042d055d52f4448b8a42261fcf709147910a4638 (diff)
#281 - tweak back button handling
Former-commit-id: ca2d7af43c1bc0658edf7477fbcfdb0a32955b4a
Diffstat (limited to 'www/js/EventModalCtrl.js')
-rw-r--r--www/js/EventModalCtrl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js
index 35921adc..45fb501c 100644
--- a/www/js/EventModalCtrl.js
+++ b/www/js/EventModalCtrl.js
@@ -734,7 +734,7 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro
if (ld.useNphZmsForEvents) {
$timeout(function () {
- if ($scope.modal.isShown()) {
+ if ($scope.modal != undefined && $scope.modal.isShown()) {
ZMDataModel.zmLog(">>>Starting checkAllEvents interval...");
//eventQueryHandle = $timeout (checkEvent(), zm.eventPlaybackQuery);