summaryrefslogtreecommitdiff
path: root/www/js/ModalCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/ModalCtrl.js')
-rw-r--r--www/js/ModalCtrl.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js
index 9ad43a9d..b0fe9eaf 100644
--- a/www/js/ModalCtrl.js
+++ b/www/js/ModalCtrl.js
@@ -847,6 +847,20 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco
$scope.isModalActive = false;
$interval.cancel(intervalModalHandle);
});
+
+
+ $scope.$on('$ionicView.beforeLeave', function () {
+ console.log("**VIEW ** ModalCtrl left");
+
+
+ ZMDataModel.zmLog ("Stopping network pull...");
+ // make sure this is applied in scope digest to stop network pull
+ // thats why we are doing it beforeLeave
+
+ window.stop();
+ /*
+
+ });
$scope.$on('$ionicView.unloaded', function () {
$scope.isModalActive = false;