From 0e88c443661a43ac5d28ae9f97faa5adc521e270 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sun, 15 Nov 2015 09:01:52 -0500 Subject: #83 - deleting and managing servers added Former-commit-id: 76498516666f5e9c43586fbbbbdbe9825f567636 --- www/js/EventServerSettingsCtrl.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'www/js/EventServerSettingsCtrl.js') 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); } -- cgit v1.2.3