summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-21 20:10:28 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-21 20:10:28 -0400
commitaac1f8e7a84cf5e4f0603ef66433b91008365300 (patch)
tree3f76110ae3d3e81fa299b20516d15fdeb9aab713 /www/js/EventCtrl.js
parent159c64886c10a25565353016f6190eb1f36259fb (diff)
#614 same behavior for event thumbnail
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js12
1 files changed, 11 insertions, 1 deletions
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)
{