summaryrefslogtreecommitdiff
path: root/www
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
parent54e6e399767bf6fbbe3a5d56d81121b6b52b4d47 (diff)
#109 - reolocate popover init
Former-commit-id: a993262d76a3ff24acd5a1215bb9234935557d63
Diffstat (limited to 'www')
-rw-r--r--www/js/EventCtrl.js12
-rw-r--r--www/js/TimelineCtrl.js15
2 files changed, 15 insertions, 12 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) {
diff --git a/www/js/TimelineCtrl.js b/www/js/TimelineCtrl.js
index b5dc5711..34978293 100644
--- a/www/js/TimelineCtrl.js
+++ b/www/js/TimelineCtrl.js
@@ -252,6 +252,14 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla
{
drawGraph(fromDate, toDate, maxItems);
}
+
+ $ionicPopover.fromTemplateUrl('templates/timeline-popover.html', {
+ scope: $scope,
+ }).then(function (popover) {
+ $scope.popover = popover;
+ });
+
+
});
//-------------------------------------------------
@@ -321,12 +329,7 @@ angular.module('zmApp.controllers').controller('zmApp.TimelineCtrl', ['$ionicPla
$scope.navControls = false;
var navControls = false;
- $ionicPopover.fromTemplateUrl('templates/timeline-popover.html', {
- scope: $scope,
- }).then(function (popover) {
- $scope.popover = popover;
- });
-
+
//drawGraph(fromDate, toDate, maxItems);
//dummyDrawGraph(fromDate, toDate,maxItems);