From e7f2da043d19c1adb5d389c383dc8b1779ed0227 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sun, 24 Apr 2016 09:46:13 -0400 Subject: #233 -initial framework - nothing is working yet Former-commit-id: e7af4a4bde04c6df580f749a23953d0facab34fc --- www/js/EventCtrl.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index ab55822f..e9cd22b7 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -956,6 +956,8 @@ angular.module('zmApp.controllers') $scope.popover = popover; }); + + //reset badge count if (window.cordova && window.cordova.plugins.notification) { $cordovaBadge.set(0).then(function () { @@ -1266,10 +1268,29 @@ angular.module('zmApp.controllers') sec + "/"; return basePath; } + + $scope.modalGraph = function() + { + $ionicModal.fromTemplateUrl('templates/events-modalgraph.html', { + scope: $scope, // give ModalCtrl access to this scope + animation: 'slide-in-up', + id:'modalgraph', + + }) + .then(function (modal) { + $scope.modal = modal; + + + + + $scope.modal.show(); + + }); + }; $scope.analyzeEvent = function(ev) { - $scope.event = ev; + $scope.event = ev; $ionicModal.fromTemplateUrl('templates/timeline-modal.html', { scope: $scope, // give ModalCtrl access to this scope animation: 'slide-in-up', -- cgit v1.2.3