Commit 825820ff323f0ee0d993695e530b0612132a28cb

Authored by Nikita Kulshreshtha
2 parents 7089be9c 896be26c

Merge branch 'sidebarhighlightmenu' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -122,8 +122,14 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -122,8 +122,14 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
122 } 122 }
123 123
124 124
125 - $rootScope.$on("$locationChangeSuccess", function () {  
126 125
  126 + $rootScope.$on("$locationChangeSuccess", function () {
  127 +
  128 + $rootScope.isLeftMenuActive = function (moduleUrl) {
  129 +
  130 + return moduleUrl === $location.path();
  131 + }
  132 +
127 if (($location.url() == "/da-body-view")) { 133 if (($location.url() == "/da-body-view")) {
128 $rootScope.disableMenuannotation = " "; 134 $rootScope.disableMenuannotation = " ";
129 $rootScope.disableMenuoption = " "; 135 $rootScope.disableMenuoption = " ";
400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
  1 +
1 <div class="bodyWrap row container-fluid" > 2 <div class="bodyWrap row container-fluid" >
2 <div class="col-sm-12 col-md-12 pageHeading"> 3 <div class="col-sm-12 col-md-12 pageHeading">
3 <!--<button type="button" class="btn btn-success pull-left toggleBar btn-sm" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar"> <i class="fa fa-bars"></i> </button>--> 4 <!--<button type="button" class="btn btn-success pull-left toggleBar btn-sm" data-toggle="tooltip" data-placement="top" title="Show/Hide Sidebar"> <i class="fa fa-bars"></i> </button>-->
@@ -26,22 +27,22 @@ @@ -26,22 +27,22 @@
26 <!--{{name}}--> 27 <!--{{name}}-->
27 <ul class="nav nav-sidebar" ng-init="hideScrollbar()"> 28 <ul class="nav nav-sidebar" ng-init="hideScrollbar()">
28 <!--<li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible()">{{module.name}}</a></li>--> 29 <!--<li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible()">{{module.name}}</a></li>-->
29 - <li><a href="da-view-list" ng-click="IsVisible()">Dissectible Anatomy</a></li>  
30 - <li><a href="3d-anatomy-list" ng-click="IsVisible()">3D Anatomy</a></li>  
31 - <li><a href="clinical-illustrations" ng-click="IsVisible()">Clinical Illustrations</a></li>  
32 - <li><a href="clinical-animations" ng-click="IsVisible()">Clinical Animations</a></li>  
33 - <li><a href="Link/encyclopedia" ng-click="IsVisible()">Encyclopedia</a></li>  
34 - <li><a href="curriculum-builder" ng-click="IsVisible()">Curriculum Builder</a></li>  
35 - <li><a href="anatomy-test" ng-click="IsVisible()">Anatomy Tests</a></li>  
36 - <li><a href="Link/IP-10" ng-click="IsVisible()">IP 10</a></li>  
37 - <li><a href="lab-exercises" ng-click="IsVisible()">Lab Exercises</a></li>  
38 - <li><a href="Link/indepth-reports" ng-click="IsVisible()">In-Depth Reports</a></li>  
39 - <li><a href="Link/complementary-and-alternate-medicine" ng-click="IsVisible()">Complementary and Alternative Medicine</a></li>  
40 - <li><a href="ADAM-Images" ng-click="IsVisible()">A.D.A.M Images</a></li>  
41 - <li><a href="Link/bodyguide" ng-click="IsVisible()">Body Guide</a></li>  
42 - <li><a href="Link/symptom-navigator" ng-click="IsVisible()">Symptom Navigator</a></li>  
43 - <li><a href="Link/wellness-tools" ng-click="IsVisible()">The Wellness Tools</a></li>  
44 - <li><a href="ADAM-on-demand" ng-click="IsVisible()">A.D.A.M OnDemand</a></li> 30 + <li><a href="da-view-list" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/da-view-list')}">Dissectible Anatomy</a></li>
  31 + <li ><a href="3d-anatomy-list" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/3d-anatomy-list')}">3D Anatomy</a></li>
  32 + <li ><a href="clinical-illustrations" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/clinical-illustrations')}">Clinical Illustrations</a></li>
  33 + <li ><a href="clinical-animations" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/clinical-animations')}">Clinical Animations</a></li>
  34 + <li><a href="Link/encyclopedia" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/encyclopedia')}">Encyclopedia</a></li>
  35 + <li><a href="curriculum-builder" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/curriculum-builder')}">Curriculum Builder</a></li>
  36 + <li><a href="anatomy-test" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/anatomy-test')}">Anatomy Tests</a></li>
  37 + <li><a href="Link/IP-10" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/IP-10')}">IP 10</a></li>
  38 + <li><a href="lab-exercises" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/lab-exercises')}">Lab Exercises</a></li>
  39 + <li><a href="Link/indepth-reports" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/indepth-reports')}">In-Depth Reports</a></li>
  40 + <li><a href="Link/complementary-and-alternate-medicine" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/complementary-and-alternate-medicine')}">Complementary and Alternative Medicine</a></li>
  41 + <li><a href="ADAM-Images" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/ADAM-Images')}">A.D.A.M Images</a></li>
  42 + <li><a href="Link/bodyguide" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/bodyguide')}">Body Guide</a></li>
  43 + <li><a href="Link/symptom-navigator" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/symptom-navigator')}">Symptom Navigator</a></li>
  44 + <li><a href="Link/wellness-tools" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/Link/wellness-tools')}">The Wellness Tools</a></li>
  45 + <li><a href="ADAM-on-demand" ng-click="IsVisible()" ng-class="{active:isLeftMenuActive('/ADAM-on-demand')}">A.D.A.M OnDemand</a></li>
45 46
46 </ul> 47 </ul>
47 </div> 48 </div>
@@ -94,3 +95,4 @@ @@ -94,3 +95,4 @@
94 tooltipClass: 'customTooltip' 95 tooltipClass: 'customTooltip'
95 }); 96 });
96 </script> 97 </script>
  98 +