diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventServerSettingsCtrl.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/www/js/EventServerSettingsCtrl.js b/www/js/EventServerSettingsCtrl.js index 3763973a..ecc53c9e 100644 --- a/www/js/EventServerSettingsCtrl.js +++ b/www/js/EventServerSettingsCtrl.js @@ -76,7 +76,8 @@ angular.module('zmApp.controllers').controller('zmApp.EventServerSettingsCtrl', } if ($scope.monitors[i].Monitor.isChecked) { monstring = monstring + $scope.monitors[i].Monitor.Id + ","; - var tint = isNaN($scope.monitors[i].Monitor.reportingInterval) ? 0 : parseInt($scope.monitors[i].Monitor.reportingInterval); + var tint = parseInt($scope.monitors[i].Monitor.reportingInterval); + if (isNaN(tint)) tint = 0; intervalstring = intervalstring + tint + ","; } @@ -104,7 +105,7 @@ angular.module('zmApp.controllers').controller('zmApp.EventServerSettingsCtrl', EventServer.sendMessage("control", { type: 'filter', monlist: monstring, - intervalist: intervalstring + intlist: intervalstring }); }); } |
