From c841472fd5b2b6cf038cfde02283239166f3b0a1 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Tue, 28 Jun 2016 10:42:15 -0400 Subject: #277 - took out ng-if and wrote a custom filter Former-commit-id: a293b031b874288a0c0a2d4e2ebb2a2dab990e2e --- www/js/app.js | 23 +++++++++++++++++++++++ www/templates/montage.html | 7 +++++-- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/www/js/app.js b/www/js/app.js index 74a27c68..6cac5802 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -79,6 +79,28 @@ angular.module('zmApp', [ +}) + + +// filter for montage iteration +.filter('onlyEnabled', 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.Monitor.Function != 'None') && (item.Monitor.Enabled!='0')) { + out.push(item); + } + + }); + + return out; + }; + }) // https://forum.ionicframework.com/t/ng-src-not-updated-in-video-tag/7540/6 @@ -429,6 +451,7 @@ angular.module('zmApp', [ 'request': function (config) { + // console.log (">>>>"+config.url); // handle basic auth properly if (config.url.indexOf("@") > -1) { //console.log ("HTTP basic auth INTERCEPTOR URL IS " + config.url); diff --git a/www/templates/montage.html b/www/templates/montage.html index 43340041..c27e2ef9 100644 --- a/www/templates/montage.html +++ b/www/templates/montage.html @@ -53,8 +53,11 @@ - + + + + -- cgit v1.2.3