diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js index 4802c0d..4c0eea3 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js @@ -672,7 +672,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'); + } };