diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-06 15:36:02 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-06 15:36:02 -0400 |
| commit | a425c4c91b9adcf3278717779dfc35d5b6ae0c16 (patch) | |
| tree | c925281f4b0596848b059330d9185f540c51987d /www/js/app.js | |
| parent | aa399523b29bb1cdbff9ed082dd919409bb0e30f (diff) | |
various fixes
Former-commit-id: 65da1a95c353a401b6ca13798916db77173b72a2
Diffstat (limited to 'www/js/app.js')
| -rw-r--r-- | www/js/app.js | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/www/js/app.js b/www/js/app.js index b543efaf..99b635b9 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -18,7 +18,6 @@ angular.module('zmApp', [ 'ionic', 'ion-datetime-picker', 'ngIOS9UIWebViewPatch', - 'tc.chartjs', 'zmApp.controllers', 'fileLogger', 'angular-carousel', @@ -124,6 +123,27 @@ angular.module('zmApp', [ }) +// filter for EH iteration +.filter('onlyEnabledAndEventHas', 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') && (item.Monitor.eventUrl != 'img/noevent.png')) { + out.push(item); + } + + }); + + return out; + }; + +}) + // credit https://gist.github.com/Zren/beaafd64f395e23f4604 @@ -1766,7 +1786,7 @@ angular.module('zmApp', [ }, url: "/montage-history", - templateUrl: "templates/montage-history2.html", + templateUrl: "templates/montage-history.html", controller: 'zmApp.MontageHistoryCtrl', params: { minimal: false, |
