diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-09-28 08:37:24 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-09-28 08:37:24 -0400 |
| commit | d8fea09d65e5207ef8c4fafcddd5fc74a7f7be00 (patch) | |
| tree | 40d9528aa2e694624eec48da4eccec7c95aee057 /www/js/WizardCtrl.js | |
| parent | 776d0d1a52622d5c84411ec3e3d9303ab117a696 (diff) | |
#709 implement native/XHR wrapper, convert all success/error to "then" construct
Diffstat (limited to 'www/js/WizardCtrl.js')
| -rw-r--r-- | www/js/WizardCtrl.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/www/js/WizardCtrl.js b/www/js/WizardCtrl.js index 6ce8ea1b..e6cfed4c 100644 --- a/www/js/WizardCtrl.js +++ b/www/js/WizardCtrl.js @@ -41,7 +41,8 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ view: "console" } }) - .success(function (data, status, headers) { + .then(function (data, status, headers) { + data = data.data; //console.log("LOOKING FOR " + zm.loginScreenString); //console.log("DATA RECEIVED " + JSON.stringify(data)); if (data.indexOf(zm.loginScreenString) == -1) { @@ -58,8 +59,8 @@ angular.module('zmApp.controllers').controller('zmApp.WizardCtrl', ['$scope', '$ d.reject(false); return d.promise; } - }) - .error(function (error) { + }, + function (error) { //console.log("************ERROR"); $scope.wizard.portalValidText = $translate.instant('kPortalDetectionFailed'); $scope.wizard.portalColor = "#e74c3c"; |
