summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-04-08 16:24:27 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-04-08 16:24:27 -0400
commita9273df91eced721b23f311e37b8d820f5951ada (patch)
treebd255850eefc1b0823120ecec83c59f63c59c751 /www/js
parent0c42d61dd057d52d111c06cb1f72a056c330e263 (diff)
clean up ES stuff, and add basic auth warning in wizard
Diffstat (limited to 'www/js')
-rw-r--r--www/js/MontageCtrl.js8
-rw-r--r--www/js/PortalLoginCtrl.js4
-rwxr-xr-xwww/js/app.js2
3 files changed, 4 insertions, 10 deletions
diff --git a/www/js/MontageCtrl.js b/www/js/MontageCtrl.js
index f8fda110..3d1a211c 100644
--- a/www/js/MontageCtrl.js
+++ b/www/js/MontageCtrl.js
@@ -36,13 +36,7 @@ angular.module('zmApp.controllers')
$rootScope.$on("auth-success", function () {
NVRDataModel.debug("Montage Re-auth handler; stopping network...");
//console.log ("RETAUTH");
- NVRDataModel.stopNetwork();
-
- if (NVRDataModel.getLogin().isUseEventServer) {
- NVRDataModel.debug ("Restablishing event server connection...");
- EventServer.disconnect();
- EventServer.init();
- }
+ // NVRDataModel.stopNetwork();
});
diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js
index 75448ceb..4161c5b9 100644
--- a/www/js/PortalLoginCtrl.js
+++ b/www/js/PortalLoginCtrl.js
@@ -246,7 +246,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic
return;
}*/
// coming here means continue
- EventServer.refresh();
+ //EventServer.init();
var statetoGo = $rootScope.lastState ? $rootScope.lastState : 'app.montage';
//NVRDataModel.debug ("logging state transition");
@@ -466,7 +466,7 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic
NVRDataModel.getKeyConfigParams(1);
NVRDataModel.getTimeZone();
- EventServer.refresh();
+ EventServer.init();
// if push broadcast happens BEFORE this, then no
// state change will occur here which is good
diff --git a/www/js/app.js b/www/js/app.js
index 487a0d0e..3bd875c6 100755
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -1774,7 +1774,7 @@ angular.module('zmApp', [
// now do SSL check
//setSSLCerts();
- EventServer.init();
+ //EventServer.init();
zmCheckUpdates.start();
NVRDataModel.log("Setting up POST LOGIN timer");
zmAutoLogin.start();