Commit bb4dc297396af0626718f8dc89ffb0bfba28ac57

Authored by Mukul Rajput
1 parent 2b458b25

this is for bug 7853

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -414,9 +414,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -414,9 +414,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
414 414
415 $rootScope.$on("$locationChangeSuccess", function () { 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 if (($location.url() == "/da-body-view")) { 422 if (($location.url() == "/da-body-view")) {
400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 <div class="sidebar pull-left mCustomScrollbar _mCS_1 mCS-autoHide "> 26 <div class="sidebar pull-left mCustomScrollbar _mCS_1 mCS-autoHide ">
27 <!--{{name}}--> 27 <!--{{name}}-->
28 <ul class="nav nav-sidebar" ng-init="hideScrollbar()"> 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 </ul> 30 </ul>
31 </div> 31 </div>
32 32