diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-23 19:38:23 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-23 19:38:23 -0400 |
| commit | 5310a154971102439df7174b3520df1290d45bfd (patch) | |
| tree | d8ec1a96832797590235668d71bacd459f10c6bc /www | |
| parent | dc29a463418d49e02c71493ca7d3e13b6b65e650 (diff) | |
interval fixe
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/EventServerSettingsCtrl.js | 5 | ||||
| -rw-r--r-- | www/templates/eventserversettings.html | 8 |
2 files changed, 7 insertions, 6 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 }); }); } diff --git a/www/templates/eventserversettings.html b/www/templates/eventserversettings.html index 74c05b20..68e9f1be 100644 --- a/www/templates/eventserversettings.html +++ b/www/templates/eventserversettings.html @@ -46,11 +46,11 @@ <ion-item class="item-accordion" ng-show="isGroupShown(monitor)"> - <div class=" item-input-inset"> - <label class="item-input-wrapper"> - <input type="tel" placeholder="sec." ng-model="monitor.Monitor.reportingInterval"> + <div class="item-input-inset" > + <label class="item-input-wrapper" > + <input type="tel" placeholder="sec." ng-model="monitor.Monitor.reportingInterval"> </label> - min. reporting interval + minimum interval </div> |
