diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-12-21 10:24:05 -0500 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-12-21 10:24:05 -0500 |
| commit | a18aa84429258413b0e7adcd6c211f243ebefcf2 (patch) | |
| tree | fc2d7611e0c02562c63e7f836b1da3cf6e023620 /www/js/MontageHistoryCtrl.js | |
| parent | 71860e6fda10e4772fad034ba036e1b66198a17c (diff) | |
#766 - wait for rotation to complete or width/height will be wrong
Diffstat (limited to 'www/js/MontageHistoryCtrl.js')
| -rw-r--r-- | www/js/MontageHistoryCtrl.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/www/js/MontageHistoryCtrl.js b/www/js/MontageHistoryCtrl.js index a83d2ae3..1faf41dd 100644 --- a/www/js/MontageHistoryCtrl.js +++ b/www/js/MontageHistoryCtrl.js @@ -69,12 +69,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc timefrom.toDate(); }; - function orientationChanged() { - // NVRDataModel.debug("Detected orientation change, redoing packery resize"); - /* $timeout(function () { - pckry.onresize(); - });*/ - } + //-------------------------------------- // pause/unpause nph-zms //--------------------------------------- @@ -864,10 +859,7 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc // make sure this is applied in scope digest to stop network pull // thats why we are doing it beforeLeave pckry.destroy(); - window.removeEventListener("resize", orientationChanged, false); - //NVRDataModel.log("Forcing a window.stop() here"); - //NVRDataModel.stopNetwork("MontageHistory-beforeLeave"); - + }); $scope.$on('$ionicView.unloaded', function () {}); $scope.sliderChanged = function (dirn) { @@ -1294,7 +1286,6 @@ angular.module('zmApp.controllers').controller('zmApp.MontageHistoryCtrl', ['$sc $scope.isModalActive = false; $scope.hrsAgo = 4; - window.addEventListener("resize", orientationChanged, false); document.addEventListener("pause", onPause, false); document.addEventListener("resume", onResume, false); |
