Commit 2e6bc8fd5587ba0dafb9e838a1920b43db228b92
1 parent
40c3ba91
removed message box if logged in id is null
Showing
1 changed file
with
5 additions
and
0 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -130,6 +130,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -130,6 +130,10 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
130 | else { | 130 | else { |
131 | if (result.loginId != undefined || result.loginId != "" || result.loginId != null) { | 131 | if (result.loginId != undefined || result.loginId != "" || result.loginId != null) { |
132 | 132 | ||
133 | + if ($("#messageModal").length > 0){ | ||
134 | + | ||
135 | + $("#messageModal").modal('hide'); | ||
136 | + } | ||
133 | $rootScope.userData = result; | 137 | $rootScope.userData = result; |
134 | $rootScope.userModules = result.modules; | 138 | $rootScope.userModules = result.modules; |
135 | $rootScope.isVisibleLogin = false; | 139 | $rootScope.isVisibleLogin = false; |
@@ -144,6 +148,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -144,6 +148,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
144 | else | 148 | else |
145 | $rootScope.haveRoleAdmin = true; | 149 | $rootScope.haveRoleAdmin = true; |
146 | } | 150 | } |
151 | + | ||
147 | } | 152 | } |
148 | } | 153 | } |
149 | }, | 154 | }, |