diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventCtrl.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 81bf4cb2..c2d0125e 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -1084,6 +1084,10 @@ angular.module('zmApp.controllers') //---------------------------------------------------------------- $scope.handleAlarms = function () { // $rootScope.isAlarm = !$rootScope.isAlarm; + + if ($scope.modal !== undefined) { + $scope.modal.remove(); + } if ($rootScope.isAlarm) { $rootScope.alarmCount = "0"; $rootScope.isAlarm = !$rootScope.isAlarm; @@ -1099,6 +1103,7 @@ angular.module('zmApp.controllers') { reload: true }); */ + getInitialEvents(); return; } |
