From cc68fd22ee02d68b9ac200dd3f02e329ace54314 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sat, 21 Jul 2018 21:08:31 -0400 Subject: nits --- www/js/WizardCtrl.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'www/js/WizardCtrl.js') diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index 20029ed1..6ce8ea1b 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -138,10 +138,12 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ // this is actually a success - I might get empty status // or something if (err.status < 300) { - NVRDataModel.log("I am taking this as a cgi-bin success - " + urls[0]); + NVRDataModel.log("A 2xx is a success, I think - " + urls[0]); d.resolve(urls[0]); return d.promise; } + + return findFirstReachableUrl(urls.slice(1), tail); }); } else { @@ -392,6 +394,10 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ // tries to log into the portal and then discover api and cgi-bin //-------------------------------------------------------------------------- + function validateDataNewAPI() { + + } + function validateData() { $rootScope.authSession = 'undefined'; $rootScope.zmCookie = ''; -- cgit v1.2.3