summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js11
1 files changed, 11 insertions, 0 deletions
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 = "<img width='100%' ng-src='"+p+"/index.php?view=image&path="+r+f+"'>";
+ $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