summaryrefslogtreecommitdiff
path: root/www/js/EventCtrl.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-12-05 10:16:01 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-12-05 10:16:01 -0500
commit6037e65c8f0cce7e1875bc976f6a010ae26f3bb2 (patch)
tree629d88ca715b8ec9c1445ec73ec5bd97251358a7 /www/js/EventCtrl.js
parent54e6e399767bf6fbbe3a5d56d81121b6b52b4d47 (diff)
#109 - reolocate popover init
Former-commit-id: a993262d76a3ff24acd5a1215bb9234935557d63
Diffstat (limited to 'www/js/EventCtrl.js')
-rw-r--r--www/js/EventCtrl.js12
1 files changed, 6 insertions, 6 deletions
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) {