From 5be15595d0a0c481edb5a0f0b2f100294e6cfb20 Mon Sep 17 00:00:00 2001 From: mitali Date: Thu, 22 Sep 2016 17:22:58 +0530 Subject: [PATCH] Bug #8006:Setting> apply and ok buttons should work after the application is just loaded. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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'); + } }; -- libgit2 0.21.4