Commit fb0aabb3b7bf9f225a45ded844370a8efbbb92ff

Authored by Mukul Rajput
1 parent 31b4663f

this is for bug 15818

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 // debugger; 473 // debugger;
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