Commit 76da6762c308da6513e3a36b6f0e5a401f5ee580
1 parent
bca0f61f
this is again solution for heading 3DAnatomy
Showing
1 changed file
with
10 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js
1 | 1 | AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile", |
2 | 2 | function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) { |
3 | 3 | |
4 | - $rootScope.currentActiveModuleTitle = pages[6].name; | |
4 | + | |
5 | 5 | $scope.showTabButton = false; |
6 | 6 | $scope.threeDAnatomyData; |
7 | 7 | $scope.Id; |
8 | 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 | 18 | if ($rootScope.refreshcheck == null) { |
11 | 19 | $location.path('/'); |
12 | 20 | } | ... | ... |