From 3677b13a59fb77df778aff01d8e815150f6ec86b Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sat, 2 Apr 2016 16:43:35 -0400 Subject: #209 and #215 - have fun Former-commit-id: 4b8bd8773014a7f6d34b011494e6451ae15b326f --- www/js/EventCtrl.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 085893f7..a489cb0e 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1255,6 +1255,24 @@ angular.module('zmApp.controllers') return basePath; } + $scope.analyzeEvent = function(ev) + { + $scope.event = ev; + $ionicModal.fromTemplateUrl('templates/timeline-modal.html', { + scope: $scope, // give ModalCtrl access to this scope + animation: 'slide-in-up', + id:'analyze', + }) + .then(function (modal) { + $scope.modal = modal; + + + + + $scope.modal.show(); + + }); + }; //-------------------------------------------------------- //This is called when we first tap on an event to see @@ -1265,6 +1283,7 @@ angular.module('zmApp.controllers') //-------------------------------------------------------- $scope.openModal = function (event) { + //ZMDataModel.zmDebug("EventCtrl: Open Modal with Base path " + relativepath); $scope.event = event; @@ -1287,7 +1306,8 @@ angular.module('zmApp.controllers') $ionicModal.fromTemplateUrl('templates/events-modal.html', { scope: $scope, - animation: 'slide-in-up' + animation: 'slide-in-up', + id:'footage', }) .then(function (modal) { $scope.modal = modal; -- cgit v1.2.3