Commit 176e799fb2da7d83fc5421a68c5c13493339f3d5

Authored by Amrita Vishnoi
2 parents 2b458b25 bb4dc297

Merge branch 'highlightLeftSideBar' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -414,9 +414,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
414 414  
415 415 $rootScope.$on("$locationChangeSuccess", function () {
416 416  
417   - $rootScope.isLeftMenuActive = function (moduleUrl) {
418   -
419   - return moduleUrl === $location.path();
  417 + $rootScope.HightLightModuleSelection = function (moduleUrl) {
  418 + var currentRoute = $location.path().substring(1);
  419 + return moduleUrl === currentRoute ? 'active' : '';
420 420 }
421 421  
422 422 if (($location.url() == "/da-body-view")) {
... ...
400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
... ... @@ -26,7 +26,7 @@
26 26 <div class="sidebar pull-left mCustomScrollbar _mCS_1 mCS-autoHide ">
27 27 <!--{{name}}-->
28 28 <ul class="nav nav-sidebar" ng-init="hideScrollbar()">
29   - <li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible()" data-ng-bind="module.name"><!--{{module.name}}--></a></li>
  29 + <li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible()" data-ng-bind="module.name" ng-class="HightLightModuleSelection('{{module.slug}}')"><!--{{module.name}}--></a></li>
30 30 </ul>
31 31 </div>
32 32  
... ...