diff options
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js index 359343ff..4827af11 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -102,6 +102,22 @@ angular.module('zmApp', [ }) +.filter ('eventListFilter', function(NVRDataModel) +{ + return function (input) { + var ld = NVRDataModel.getLogin(); + var out = []; + angular.forEach (input, function (item) + { + if (item.Event.Archived == '0' || !ld.hideArchived) { + out.push(item); + } + }); + return out; + }; + +}) + // filter for montage iteration .filter('onlyEnabled', function() { |
