From b59f8ecd6492f73bab4559e448379e8d3fc47311 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Tue, 17 Nov 2015 14:05:43 -0500 Subject: #89 - toggle between all events and only events with alarm frames Former-commit-id: 83843aa769b04811442b1e7dbf910cdb7b475279 --- www/js/EventCtrl.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index c63fac37..7ebc764b 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -23,6 +23,8 @@ angular.module('zmApp.controllers') $scope.days = []; $scope.weeks = []; $scope.months = []; + + $scope.minAlarmCount = "1"; $scope.eventList = { showDelete: false @@ -1382,6 +1384,11 @@ angular.module('zmApp.controllers') loadMore(); }; + + $scope.toggleMinAlarmFrameCount = function () { + console.log ("Toggling"); + $scope.minAlarmCount = ($scope.minAlarmCount == '0') ? '1':'0'; + }; //-------------------------------------- -- cgit v1.2.3