From 3677b13a59fb77df778aff01d8e815150f6ec86b Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Sat, 2 Apr 2016 16:43:35 -0400 Subject: #209 and #215 - have fun Former-commit-id: 4b8bd8773014a7f6d34b011494e6451ae15b326f --- www/js/TimelineModalCtrl.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'www/js/TimelineModalCtrl.js') diff --git a/www/js/TimelineModalCtrl.js b/www/js/TimelineModalCtrl.js index 0b33006c..05a94696 100644 --- a/www/js/TimelineModalCtrl.js +++ b/www/js/TimelineModalCtrl.js @@ -133,8 +133,10 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' }; - $scope.$on('modal.removed', function () { + $scope.$on('modal.removed', function (e,m) { + if (m.id != 'analyze') + return; //Graph2d.destroy(); tcGraph.destroy(); // Execute action @@ -144,7 +146,10 @@ angular.module('zmApp.controllers').controller('TimelineModalCtrl', ['$scope', ' // init drawing here //------------------------------------------------------ - $scope.$on('modal.shown', function () { + $scope.$on('modal.shown', function (e,m) { + + if (m.id != 'analyze') + return; $scope.graphWidth=$rootScope.devWidth-30; ZMDataModel.zmLog ("Setting init graph width to " + $scope.graphWidth); -- cgit v1.2.3