From 8812d6fd22b1710e019ba53e94723c76b97af6b7 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Mon, 30 Nov 2015 03:30:57 +0100 Subject: #108 - minAlarmCount is now part of each serverProfile and will persist Former-commit-id: 89ecf51624e78a95474630b48c05d9fa921164c0 --- www/js/EventCtrl.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 8c1f4a02..fc0224aa 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1402,7 +1402,10 @@ angular.module('zmApp.controllers') $scope.toggleMinAlarmFrameCount = function () { console.log ("Toggling"); - $rootScope.minAlarmCount = ($rootScope.minAlarmCount == '0') ? '1':'0'; + + var ld = ZMDataModel.getLogin(); + ld.minAlarmCount = ld.minAlarmCount=='0'?'1':'0'; + ZMDataModel.setLogin(ld); doRefresh(); }; -- cgit v1.2.3