Commit 09ecfd7d3489cad909d310dba6aeb1c1fdf36c55
1 parent
6a8566fc
Bug #10201: Menu > Options ----> List Manger and Add to Existing Curriculum shou…
…ld be disable on CI and CA Detail page.
Showing
3 changed files
with
14 additions
and
5 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... | ... | @@ -67,16 +67,21 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", |
67 | 67 | |
68 | 68 | $rootScope.$on("$locationChangeSuccess", function () { |
69 | 69 | |
70 | - if (($location.url() == "/da-body-view") || ($location.url() == "/clinical-illustrations-detail") || ($location.url() == "/clinical-animations-detail")) { | |
70 | + if (($location.url() == "/da-body-view")) { | |
71 | 71 | $rootScope.disableMenuannotation = " "; |
72 | 72 | $rootScope.disableMenuoption = " "; |
73 | 73 | |
74 | - | |
74 | + } | |
75 | + else if (($location.url() == "/clinical-illustrations-detail") || ($location.url() == "/clinical-animations-detail")) { | |
76 | + $rootScope.disableMenuannotation = " "; | |
77 | + $rootScope.disableMenuoption = " "; | |
78 | + $rootScope.disableSubMenu = "disableSubMenu"; | |
75 | 79 | } |
76 | 80 | else { |
77 | 81 | |
78 | 82 | $rootScope.disableMenuannotation = "disableMenuannotation"; |
79 | 83 | $rootScope.disableMenuoption = "disableMenuoption"; |
84 | + $rootScope.disableSubMenu = ""; | |
80 | 85 | $rootScope.CloseAnnotationTool(); |
81 | 86 | $rootScope.CloseListManager(); |
82 | 87 | angular.element('#modal-settings').modal('hide'); | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html
... | ... | @@ -30,14 +30,14 @@ |
30 | 30 | <ul class="dropdown-menu"> |
31 | 31 | <!--<li><a href="#" ng-click="ShowListManager()">List Manager</a></li>--> |
32 | 32 | |
33 | - <li><a href="#" ng-click="ShowListManager()">List Manager</a></li> | |
33 | + <li ng-class="disableSubMenu"><a href="#" ng-click="ShowListManager()">List Manager</a></li> | |
34 | 34 | <!--#7904--> |
35 | 35 | <li><a href="#" id="annotationToolBarOptions" ng-click="ShowAnnotationWindow()">Annotation Toolbar</a></li> |
36 | 36 | |
37 | - <li><a href="#">Add to Existing Curriculum</a></li> | |
37 | + <li ng-class="disableSubMenu"><a href="#">Add to Existing Curriculum</a></li> | |
38 | 38 | <li><a ng-click="ShowSettingWindow()" class="cursor-pointer">Settings</a></li> |
39 | 39 | <li role="separator" class="divider"></li> |
40 | - <li><a href="#">Lab Exercises PDF</a></li> | |
40 | + <li ng-class="disableMenuoption"><a href="#">Lab Exercises PDF</a></li> | |
41 | 41 | </ul> |
42 | 42 | </li> |
43 | 43 | <li class="dropdown"> | ... | ... |
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css