From 6037e65c8f0cce7e1875bc976f6a010ae26f3bb2 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sat, 5 Dec 2015 10:16:01 -0500 Subject: #109 - reolocate popover init Former-commit-id: a993262d76a3ff24acd5a1215bb9234935557d63 --- www/js/EventCtrl.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 65190edc..d0f42975 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -79,12 +79,7 @@ angular.module('zmApp.controllers') $scope.connKey = Math.floor(Math.random() * (999999 - 111111 + 1)) + 111111; - $ionicPopover.fromTemplateUrl('templates/events-popover.html', { - scope: $scope, - }).then(function (popover) { - $scope.popover = popover; - }); - + // These are the commands ZM uses to move around // in ZMS - not used anymore as I am doing direct // image access via image.php @@ -882,6 +877,11 @@ angular.module('zmApp.controllers') badge: 0, }); + $ionicPopover.fromTemplateUrl('templates/events-popover.html', { + scope: $scope, + }).then(function (popover) { + $scope.popover = popover; + }); //reset badge count if (window.cordova && window.cordova.plugins.notification) { -- cgit v1.2.3