diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 0c3587d..5fa8de6 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -39,7 +39,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic ethnicity: null, modesty: null }; - + $rootScope.refreshcheck = null; $rootScope.isModestyOn; $rootScope.isModestyOff; $rootScope.SetSettingActiveTab; @@ -207,6 +207,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic $rootScope.isVisibleLogin = false; $rootScope.userData = userInfo; $rootScope.userModules = userInfo.modules; + if ($rootScope.refreshcheck == null) { + $location.path('/'); + } } } catch (e) { @@ -661,6 +664,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic //jspanel functionality.. $rootScope.getModuleScrollPosition = function () { + $rootScope.refreshcheck = "check"; $('.mCSB_container ul li').click(function () { $rootScope.scrollTopPosition = $(this).position().top;