diff options
Diffstat (limited to 'www/js/EventCtrl.js')
| -rw-r--r-- | www/js/EventCtrl.js | 5 |
1 files changed, 4 insertions, 1 deletions
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(); }; |
