diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-21 09:15:31 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2016-10-21 09:15:31 -0400 |
| commit | 7dbdc4e09de2fe24460190cead2ee317165c9453 (patch) | |
| tree | 21c911dc440c808a263c347f5e3d0f8f1fff84f0 /www/js/LoginCtrl.js | |
| parent | c24e0850bddaf1d96df01131f5647dea6eaf04f2 (diff) | |
adding returns after state.go --> seems it takes time to go and code continues to execute below it - WTF!
Former-commit-id: f1f7e2d62f47f9528d163db43fa166d088b0a819
Diffstat (limited to 'www/js/LoginCtrl.js')
| -rw-r--r-- | www/js/LoginCtrl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js index e076cc18..4e4efc0a 100644 --- a/www/js/LoginCtrl.js +++ b/www/js/LoginCtrl.js @@ -56,7 +56,9 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r }, { reload: true }); + return; } + }; //---------------------------------------------------------------- @@ -200,7 +202,7 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r //console.log ( "My loginData saved " + JSON.stringify($scope.loginData)); NVRDataModel.setLogin($scope.loginData); $state.go("eventserversettings"); - + return; }; |
