diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-04-02 16:43:35 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-04-02 16:43:35 -0400 |
| commit | 3677b13a59fb77df778aff01d8e815150f6ec86b (patch) | |
| tree | 0b60009590d8b10d2849b04f8b8a9efbbcb124c8 /www/js/TimelineModalCtrl.js | |
| parent | 11fb620b9234b174aa232ec51a2555aec6dcb7dd (diff) | |
#209 and #215 - have fun
Former-commit-id: 4b8bd8773014a7f6d34b011494e6451ae15b326f
Diffstat (limited to 'www/js/TimelineModalCtrl.js')
| -rw-r--r-- | www/js/TimelineModalCtrl.js | 9 |
1 files changed, 7 insertions, 2 deletions
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); |
