summaryrefslogtreecommitdiff
path: root/www/js/EventServerSettingsCtrl.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-15 09:01:52 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-15 09:01:52 -0500
commit0e88c443661a43ac5d28ae9f97faa5adc521e270 (patch)
treeed89c1ad2deed6f337ef6696e789c5fa248d13cf /www/js/EventServerSettingsCtrl.js
parent444450cda1dbed13783605c056ff1c626b82cd35 (diff)
#83 - deleting and managing servers added
Former-commit-id: 76498516666f5e9c43586fbbbbdbe9825f567636
Diffstat (limited to 'www/js/EventServerSettingsCtrl.js')
-rw-r--r--www/js/EventServerSettingsCtrl.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/www/js/EventServerSettingsCtrl.js b/www/js/EventServerSettingsCtrl.js
index 9ace8a99..d061964b 100644
--- a/www/js/EventServerSettingsCtrl.js
+++ b/www/js/EventServerSettingsCtrl.js
@@ -192,6 +192,10 @@ angular.module('zmApp.controllers').controller('zmApp.EventServerSettingsCtrl',
});
}
+ else
+ {
+ EventServer.disconnect();
+ }
ZMDataModel.displayBanner('info', ['settings saved']);
}
@@ -286,10 +290,10 @@ angular.module('zmApp.controllers').controller('zmApp.EventServerSettingsCtrl',
if (!isEnabled($scope.monitors[i].Monitor.Id)) {
// if the filter list has IDs and this is not part of it, uncheck it
$scope.monitors[i].Monitor.isChecked = false;
- console.log("Marking false");
+ //console.log("Marking false");
$scope.monitors[i].Monitor.reportingInterval = 0;
} else {
- console.log("Marking true");
+ // console.log("Marking true");
$scope.monitors[i].Monitor.isChecked = true;
$scope.monitors[i].Monitor.reportingInterval = getInterval($scope.monitors[i].Monitor.Id);
}