diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
index d6de654..0fdd540 100644
--- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
+++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -616,7 +616,16 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
//localStorage.setItem("globalModesty", $rootScope.globalSetting.modesty);
//4.
- $rootScope.reloadChildController();
+ //$rootScope.reloadChildController();
+
+ var len = $rootScope.openModules.length;
+ if (len > 0) {
+ $rootScope.reloadChildController();
+ }
+ else
+ {
+ $('#modal-settings').modal('hide');
+ }
};