diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-04-24 09:46:13 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-04-24 09:46:13 -0400 |
| commit | e7f2da043d19c1adb5d389c383dc8b1779ed0227 (patch) | |
| tree | 616d39cc187d22408d7f95f55a8bedca95edf797 /www/js/EventCtrl.js | |
| parent | cc97290133abd5a6b141f4ea526bdf0bf261076c (diff) | |
#233 -initial framework - nothing is working yet
Former-commit-id: e7af4a4bde04c6df580f749a23953d0facab34fc
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 23 |
1 files changed, 22 insertions, 1 deletions
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', |
