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,16 +67,21 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
67 | 67 | ||
68 | $rootScope.$on("$locationChangeSuccess", function () { | 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 | $rootScope.disableMenuannotation = " "; | 71 | $rootScope.disableMenuannotation = " "; |
72 | $rootScope.disableMenuoption = " "; | 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 | else { | 80 | else { |
77 | 81 | ||
78 | $rootScope.disableMenuannotation = "disableMenuannotation"; | 82 | $rootScope.disableMenuannotation = "disableMenuannotation"; |
79 | $rootScope.disableMenuoption = "disableMenuoption"; | 83 | $rootScope.disableMenuoption = "disableMenuoption"; |
84 | + $rootScope.disableSubMenu = ""; | ||
80 | $rootScope.CloseAnnotationTool(); | 85 | $rootScope.CloseAnnotationTool(); |
81 | $rootScope.CloseListManager(); | 86 | $rootScope.CloseListManager(); |
82 | angular.element('#modal-settings').modal('hide'); | 87 | angular.element('#modal-settings').modal('hide'); |
400-SOURCECODE/AIAHTML5.Web/app/widget/TopMenu.html
@@ -30,14 +30,14 @@ | @@ -30,14 +30,14 @@ | ||
30 | <ul class="dropdown-menu"> | 30 | <ul class="dropdown-menu"> |
31 | <!--<li><a href="#" ng-click="ShowListManager()">List Manager</a></li>--> | 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 | <!--#7904--> | 34 | <!--#7904--> |
35 | <li><a href="#" id="annotationToolBarOptions" ng-click="ShowAnnotationWindow()">Annotation Toolbar</a></li> | 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 | <li><a ng-click="ShowSettingWindow()" class="cursor-pointer">Settings</a></li> | 38 | <li><a ng-click="ShowSettingWindow()" class="cursor-pointer">Settings</a></li> |
39 | <li role="separator" class="divider"></li> | 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 | </ul> | 41 | </ul> |
42 | </li> | 42 | </li> |
43 | <li class="dropdown"> | 43 | <li class="dropdown"> |
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css