From 76da6762c308da6513e3a36b6f0e5a401f5ee580 Mon Sep 17 00:00:00 2001 From: Mukul Date: Mon, 30 Oct 2017 18:00:43 +0530 Subject: [PATCH] this is again solution for heading 3DAnatomy --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js index 50b610e..33f02ff 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js @@ -1,12 +1,20 @@ AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile", function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) { - $rootScope.currentActiveModuleTitle = pages[6].name; + $scope.showTabButton = false; $scope.threeDAnatomyData; $scope.Id; $scope.$on('$viewContentLoaded', function (event) { - + var currentURL = $location.path(); + var selectedModuleName = ''; + //set module title + angular.forEach($rootScope.userModules, function (value, key) { + if (value.slug === currentURL.replace('/', '')) { + selectedModuleName = value.name; + } + $rootScope.currentActiveModuleTitle = selectedModuleName; + }) if ($rootScope.refreshcheck == null) { $location.path('/'); } -- libgit2 0.21.4