diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
index b343982..429d05b 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;
@@ -252,6 +252,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) {
@@ -614,6 +617,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;