Commit 572d36a5d2dc6e49885ed66b4db14add6fc6df08
1 parent
acff4858
solution for refresh issue
Showing
1 changed file
with
5 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -39,7 +39,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
39 | 39 | ethnicity: null, |
40 | 40 | modesty: null |
41 | 41 | }; |
42 | - | |
42 | + $rootScope.refreshcheck = null; | |
43 | 43 | $rootScope.isModestyOn; |
44 | 44 | $rootScope.isModestyOff; |
45 | 45 | $rootScope.SetSettingActiveTab; |
... | ... | @@ -207,6 +207,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
207 | 207 | $rootScope.isVisibleLogin = false; |
208 | 208 | $rootScope.userData = userInfo; |
209 | 209 | $rootScope.userModules = userInfo.modules; |
210 | + if ($rootScope.refreshcheck == null) { | |
211 | + $location.path('/'); | |
212 | + } | |
210 | 213 | } |
211 | 214 | } |
212 | 215 | catch (e) { |
... | ... | @@ -661,6 +664,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
661 | 664 | //jspanel functionality.. |
662 | 665 | |
663 | 666 | $rootScope.getModuleScrollPosition = function () { |
667 | + $rootScope.refreshcheck = "check"; | |
664 | 668 | $('.mCSB_container ul li').click(function () { |
665 | 669 | |
666 | 670 | $rootScope.scrollTopPosition = $(this).position().top; | ... | ... |