From 2b9bd8037a0533f55cc37e35852263732f37f771 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 21 Apr 2016 15:45:29 -0400 Subject: #229 - you can now tap on alarmed images Former-commit-id: a644435fadcc4a96d6eceffa1cd963f67de3a1a5 --- www/js/EventCtrl.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'www/js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 6bb83bd2..ab55822f 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -281,6 +281,17 @@ angular.module('zmApp.controllers') }); + + //------------------------------------------------------- + // Tapping on a frame shows this image + //------------------------------------------------------ + + $scope.showImage = function (p,r,f, fid,e) + { + var img = ""; + $rootScope.zmPopup = $ionicPopup.alert({title: 'frame:'+fid+'/Event:'+e,template:img, cssClass:'popup80'}); + }; + // not explictly handling error --> I have a default "No events found" message -- cgit v1.2.3