summaryrefslogtreecommitdiff
path: root/www/js/app.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-12-17 12:30:27 -0500
committerPliable Pixels <pliablepixels@gmail.com>2017-12-17 12:30:27 -0500
commit6460992ab3341423fb44ffd4e3318f00fdc80ec2 (patch)
treebdda29a1e3796f4b8240b7d0c819fe8ddefc2797 /www/js/app.js
parenta969c52e1200526eca1c1287159ab83acf7627a0 (diff)
#570 inital framework for 24 hr moment
Diffstat (limited to 'www/js/app.js')
-rwxr-xr-xwww/js/app.js41
1 files changed, 41 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 4e98fcbc..d8c78a0d 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -133,6 +133,29 @@ angular.module('zmApp', [
})
+
+ // filter for montage iteration
+ .filter('onlyEnabledMoments', function () {
+
+ // Create the return function and set the required parameter name to **input**
+ return function (input) {
+
+ var out = [];
+
+ angular.forEach(input, function (item) {
+
+ if (!item.Event.hide )
+ {
+ out.push(item);
+ }
+
+ });
+
+ return out;
+ };
+
+ })
+
// filter for montage iteration
.filter('onlyEnabled', function () {
@@ -2109,6 +2132,24 @@ angular.module('zmApp', [
})
+
+ .state('app.moment', {
+ data: {
+ requireLogin: true
+ },
+ resolve: {
+ message: function (NVRDataModel) {
+ //console.log("Inside app.events resolve");
+ return NVRDataModel.getMonitors(0);
+ }
+ },
+ cache: false,
+ url: "/moment",
+ templateUrl: "templates/moment.html",
+ controller: 'zmApp.MomentCtrl',
+
+ })
+
.state('app.devoptions', {
data: {
requireLogin: false