summaryrefslogtreecommitdiff
path: root/www/js/MomentCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-05 14:22:38 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-05 14:22:38 -0400
commitf2619f2c04203ac3a56bf0ac914149df5616ef49 (patch)
tree8bfca27b51dfcd9666897db2c32236185b2b8eb2 /www/js/MomentCtrl.js
parent6fe8b88916291e62360217ee23829d4c0db592aa (diff)
added non-obstructing loading indicator for montage and moment
Diffstat (limited to 'www/js/MomentCtrl.js')
-rw-r--r--www/js/MomentCtrl.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js
index 3ed6a49a..4a0d41ec 100644
--- a/www/js/MomentCtrl.js
+++ b/www/js/MomentCtrl.js
@@ -514,6 +514,8 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
noBackdrop: true,
duration: zm.loadingTimeout
});*/
+
+ $scope.areImagesLoading = true;
var progressCalled = false;
var ld = NVRDataModel.getLogin();
@@ -536,6 +538,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
NVRDataModel.debug("All images loaded");
$ionicLoading.hide();
+ $scope.areImagesLoading = false;
jiggleAway();
if (!progressCalled) {
@@ -825,6 +828,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$scope.$on('$ionicView.beforeEnter', function () {
$scope.showIcons = true;
+ $scope.areImagesLoading = true;
$scope.expand = false;
var ld = NVRDataModel.getLogin();
@@ -858,7 +862,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$scope.$on('$ionicView.afterEnter', function () {
-
+
getMoments(momentType);