summaryrefslogtreecommitdiff
path: root/www/js/MomentCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@users.noreply.github.com>2018-10-15 10:42:02 -0400
committerGitHub <noreply@github.com>2018-10-15 10:42:02 -0400
commit7d696e85cbe7112ebc2a1b49ee957e42209a404c (patch)
treeff8135ee4b1ffeac839c8f3365d5d82e29760d77 /www/js/MomentCtrl.js
parent1cd6c1ba5f1944b411f871bedeb65e93c9530bc4 (diff)
parentfb73ec7092b1763c4d64148dd8230751e10eec68 (diff)
Merge branch 'master' into master
Diffstat (limited to 'www/js/MomentCtrl.js')
-rw-r--r--www/js/MomentCtrl.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js
index 5aad9a4d..6a56158e 100644
--- a/www/js/MomentCtrl.js
+++ b/www/js/MomentCtrl.js
@@ -150,7 +150,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
}
- if ($scope.expand)
+ if ($scope.expand)
_expandAll(moments);
else _collapseAll(moments);
@@ -323,20 +323,20 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
var ld = NVRDataModel.getLogin();
ld.montageReviewCollapse = $scope.expand;
- console.log (">>>>>>>>> SAVING EXPAND AS:"+$scope.expand);
+ console.log(">>>>>>>>> SAVING EXPAND AS:" + $scope.expand);
NVRDataModel.setLogin(ld);
};
function expandAll() {
-
+
_expandAll($scope.moments);
}
function _expandAll(arr) {
- NVRDataModel.debug ("Expanding all images");
+ NVRDataModel.debug("Expanding all images");
for (var i = 0; i < arr.length; i++) {
arr[i].Event.hide = false;
arr[i].Event.icon = 'ion-code-working';
@@ -348,10 +348,10 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$timeout(function () {
masonry.reloadItems();
jiggleAway();
-
+
}, 100);
}
-
+
}
function collapseAll() {
@@ -360,8 +360,8 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
}
function _collapseAll(arr) {
-
- NVRDataModel.debug ("Collapsing all images");
+
+ NVRDataModel.debug("Collapsing all images");
for (var i = 0; i < monitors.length; i++) {
var firstFound = false;
var firstIndex = -1;
@@ -398,10 +398,10 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$timeout(function () {
masonry.reloadItems();
jiggleAway();
-
+
}, 100);
}
-
+
}
//----------------------------------------------------------------
@@ -845,9 +845,9 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
$scope.expand = ld.montageReviewCollapse;
- console.log (">>>>>>>>> RESTORING EXPAND AS:"+$scope.expand);
+ console.log(">>>>>>>>> RESTORING EXPAND AS:" + $scope.expand);
$scope.isMaxScoreFramePresent = false;
-
+
$scope.loadingStatus = $translate.instant('kLoading');
$scope.gridSize = ld.momentGridSize;
momentType = ld.momentArrangeBy;
@@ -863,7 +863,7 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$
constructMask();
$scope.isSubMenu = ld.enableMomentSubMenu;
-
+
for (var i = 0; i < monitors.length; i++) {
if (excludeMonitors.indexOf(monitors[i].Monitor.Id) != -1) {