Commit 4eb8d1b71c6a3c7de410525a656307c6ca2e2e3c

Authored by Amrita Vishnoi
2 parents c6a1294e fb0aabb3

Merge branch 'scrollmcustomissue' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -463,7 +463,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -463,7 +463,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
463 463
464 //jspanel functionality.. 464 //jspanel functionality..
465 465
466 - 466 + $rootScope.getSelectedModuleId = function (selectedModuleId) {
  467 + setTimeout(function () {
  468 + $(".sidebar").mCustomScrollbar("scrollTo", $("#" + selectedModuleId));
  469 + }, 300);
  470 + }
467 471
468 $rootScope.openParent = function (slug) { 472 $rootScope.openParent = function (slug) {
469 473
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" ng-class="HightLightModuleSelection('{{module.slug}}')"><!--{{module.name}}--></a></li> 29 + <li ng-repeat="module in userModules"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible();getSelectedModuleId(module.slug)" data-ng-bind="module.name" ng-class="HightLightModuleSelection('{{module.slug}}')"><!--{{module.name}}--></a></li>
30 </ul> 30 </ul>
31 </div> 31 </div>
32 32