Commit 5be15595d0a0c481edb5a0f0b2f100294e6cfb20

Authored by Mitali Srivastava
1 parent eea69634

Bug #8006:Setting> apply and ok buttons should work after the application is just loaded.

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -616,7 +616,16 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", @@ -616,7 +616,16 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
616 //localStorage.setItem("globalModesty", $rootScope.globalSetting.modesty); 616 //localStorage.setItem("globalModesty", $rootScope.globalSetting.modesty);
617 617
618 //4. 618 //4.
619 - $rootScope.reloadChildController(); 619 + //$rootScope.reloadChildController();
  620 +
  621 + var len = $rootScope.openModules.length;
  622 + if (len > 0) {
  623 + $rootScope.reloadChildController();
  624 + }
  625 + else
  626 + {
  627 + $('#modal-settings').modal('hide');
  628 + }
620 629
621 }; 630 };
622 631