Commit 5be15595d0a0c481edb5a0f0b2f100294e6cfb20
1 parent
eea69634
Bug #8006:Setting> apply and ok buttons should work after the application is just loaded.
Showing
1 changed file
with
10 additions
and
1 deletions
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 |