From aac1f8e7a84cf5e4f0603ef66433b91008365300 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 21 Apr 2018 20:10:28 -0400 Subject: #614 same behavior for event thumbnail --- www/js/EventCtrl.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 45b750b2..85421126 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -2814,6 +2814,9 @@ angular.module('zmApp.controllers') + + + $scope.showThumbnail = function (b,f) { if (!f) {// api update needed @@ -2859,6 +2862,11 @@ angular.module('zmApp.controllers') //earlier won't work //-------------------------------------------------------- + $scope.openModalWithSnapshot = function (event) { + openModal (event,'enabled'); + + }; + $scope.openModal = function(event) { @@ -2866,7 +2874,7 @@ angular.module('zmApp.controllers') }; - function openModal (event) { + function openModal (event, snapshot) { NVRDataModel.debug("unbinding eventCtrl watchers as modal has its own"); ionRangeWatcher(); mycarouselWatcher(); @@ -2891,6 +2899,8 @@ angular.module('zmApp.controllers') animation: 'slide-in-up', id: 'footage', showLive:sl, // seems bool is not allowed... + snapshot:snapshot, + eventId:event.Event.Id }) .then(function(modal) { -- cgit v1.2.3