From 49263c5ddd92c4374b23cff4273c1e6460823f80 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 31 May 2018 08:21:51 -0400 Subject: #636 introduce DB get/set checks --- www/js/LoginCtrl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'www/js/LoginCtrl.js') diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index dd18724e..14b8d511 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -456,6 +456,9 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r //console.log ("*********** SAVE ITEMS CALLED "); //console.log('Saving login'); + + NVRDataModel.debug ("Inside save Items"); + NVRDataModel.setFirstUse(false); NVRDataModel.setCurrentServerVersion(''); NVRDataModel.setCurrentServerMultiPortSupported(false); @@ -601,7 +604,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r .then(function (data) { - console.log ("DOLOGIN RETURNED "+ JSON.stringify(data)); + //console.log ("DOLOGIN RETURNED "+ JSON.stringify(data)); // Now let's validate if the API works @@ -727,6 +730,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r $scope.saveItems = function () { + NVRDataModel.debug ("User tapped save, calling SaveItems"); NVRDataModel.clearZmsMultiPortSupport(); if (!$scope.loginData.serverName) { $rootScope.zmPopup = $ionicPopup.alert({ -- cgit v1.2.3