Commit fb0aabb3b7bf9f225a45ded844370a8efbbb92ff
1 parent
31b4663f
this is for bug 15818
Showing
2 changed files
with
6 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -463,7 +463,11 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic |
463 | 463 | |
464 | 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 | 472 | $rootScope.openParent = function (slug) { |
469 | 473 | // debugger; | ... | ... |
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" 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 | 30 | </ul> |
31 | 31 | </div> |
32 | 32 | ... | ... |