Commit 80d3f0d099e0b6c8a7ae10cb891105c8cb21718d
Merge branch 'heading3DAnatony' into Develop
Showing
1 changed file
with
10 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js
1 | AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile", | 1 | AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile", |
2 | function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) { | 2 | function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) { |
3 | 3 | ||
4 | - $rootScope.currentActiveModuleTitle = pages[5].name; | 4 | + |
5 | $scope.showTabButton = false; | 5 | $scope.showTabButton = false; |
6 | $scope.threeDAnatomyData; | 6 | $scope.threeDAnatomyData; |
7 | $scope.Id; | 7 | $scope.Id; |
8 | $scope.$on('$viewContentLoaded', function (event) { | 8 | $scope.$on('$viewContentLoaded', function (event) { |
9 | - | 9 | + var currentURL = $location.path(); |
10 | + var selectedModuleName = ''; | ||
11 | + //set module title | ||
12 | + angular.forEach($rootScope.userModules, function (value, key) { | ||
13 | + if (value.slug === currentURL.replace('/', '')) { | ||
14 | + selectedModuleName = value.name; | ||
15 | + } | ||
16 | + $rootScope.currentActiveModuleTitle = selectedModuleName; | ||
17 | + }) | ||
10 | if ($rootScope.refreshcheck == null) { | 18 | if ($rootScope.refreshcheck == null) { |
11 | $location.path('/'); | 19 | $location.path('/'); |
12 | } | 20 | } |