From 5310a154971102439df7174b3520df1290d45bfd Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Fri, 23 Oct 2015 19:38:23 -0400 Subject: interval fixe --- www/js/EventServerSettingsCtrl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'www/js/EventServerSettingsCtrl.js') 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 }); }); } -- cgit v1.2.3