Commit b308832d71f4573c5564393583970322fc71d9cc

Authored by Amrita Vishnoi
1 parent 65960be7

Refs: #5285 issue is fixed

400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html
... ... @@ -68,41 +68,42 @@
68 68 $('[data-toggle="tooltip"]').tooltip();
69 69 })
70 70  
71   -
72   - if (window.location.pathname == "/AIA/da-view-list") {
  71 + var appPath = window.location.pathname.split("/")[1];
  72 + if (window.location.pathname == "/" + appPath + "/da-view-list") {
73 73  
74 74 $(".nav-sidebar li a").removeClass('active');
75 75 $(".nav-sidebar li:first-child a").addClass('active');
76 76  
77 77 }
78   - else if (window.location.pathname == "/AIA/3dAnatomy") {
  78 +
  79 + else if (window.location.pathname == "/" + appPath + "/3dAnatomy") {
79 80  
80 81 $(".nav-sidebar li a").removeClass('active');
81 82 $(".nav-sidebar li:nth-child(2) a").addClass('active');
82 83  
83 84 }
84   - else if (window.location.pathname == "/AIA/clinical-illustrations") {
  85 + else if (window.location.pathname == "/" + appPath + "/clinical-illustrations") {
85 86  
86 87 $(".nav-sidebar li a").removeClass('active');
87 88 $(".nav-sidebar li:nth-child(3) a").addClass('active');
88 89  
89 90  
90 91 }
91   - else if (window.location.pathname == "/AIA/clinical-animations") {
  92 + else if (window.location.pathname == "/" + appPath + "/clinical-animations") {
92 93  
93 94 $(".nav-sidebar li a").removeClass('active');
94 95 $(".nav-sidebar li:nth-child(4) a").addClass('active');
95 96  
96 97  
97 98 }
98   - else if (window.location.pathname == "/AIA/Link/encyclopedia") {
  99 + else if (window.location.pathname == "/" + appPath + "/Link/encyclopedia") {
99 100  
100 101 $(".nav-sidebar li a").removeClass('active');
101 102 $(".nav-sidebar li:nth-child(5) a").addClass('active');
102 103  
103 104  
104 105 }
105   - else if (window.location.pathname == "/AIA/curriculum-builder") {
  106 + else if (window.location.pathname == "/" + appPath + "/curriculum-builder") {
106 107  
107 108 $(".nav-sidebar li a").removeClass('active');
108 109 $(".nav-sidebar li:nth-child(6) a").addClass('active');
... ... @@ -110,7 +111,7 @@
110 111  
111 112 }
112 113  
113   - else if (window.location.pathname == "/AIA/anatomy-test") {
  114 + else if (window.location.pathname == "/" + appPath + "/anatomy-test") {
114 115  
115 116 $(".nav-sidebar li a").removeClass('active');
116 117 $(".nav-sidebar li:nth-child(7) a").addClass('active');
... ... @@ -118,56 +119,56 @@
118 119  
119 120 }
120 121  
121   - else if (window.location.pathname == "/AIA/Link/IP-10") {
  122 + else if (window.location.pathname == "/" + appPath + "/Link/IP-10") {
122 123  
123 124 $(".nav-sidebar li a").removeClass('active');
124 125 $(".nav-sidebar li:nth-child(8) a").addClass('active');
125 126  
126 127 }
127   - else if (window.location.pathname == "/AIA/lab-exercises") {
  128 + else if (window.location.pathname == "/" + appPath + "/lab-exercises") {
128 129  
129 130 $(".nav-sidebar li a").removeClass('active');
130 131 $(".nav-sidebar li:nth-child(9) a").addClass('active');
131 132  
132 133 }
133   - else if (window.location.pathname == "/AIA/Link/indepth-reports") {
  134 + else if (window.location.pathname == "/" + appPath + "/Link/indepth-reports") {
134 135  
135 136 $(".nav-sidebar li a").removeClass('active');
136 137 $(".nav-sidebar li:nth-child(10) a").addClass('active');
137 138  
138 139 }
139   - else if (window.location.pathname == "/AIA/Link/complementary-and-alternate-medicine") {
  140 + else if (window.location.pathname == "/" + appPath + "/Link/complementary-and-alternate-medicine") {
140 141  
141 142 $(".nav-sidebar li a").removeClass('active');
142 143 $(".nav-sidebar li:nth-child(11) a").addClass('active');
143 144  
144 145 }
145   - else if (window.location.pathname == "/AIA/ADAM-Images") {
  146 + else if (window.location.pathname == "/" + appPath + "/ADAM-Images") {
146 147  
147 148 $(".nav-sidebar li a").removeClass('active');
148 149 $(".nav-sidebar li:nth-child(12) a").addClass('active');
149 150  
150 151 }
151 152  
152   - else if (window.location.pathname == "/AIA/Link/bodyguide") {
  153 + else if (window.location.pathname == "/" + appPath + "/Link/bodyguide") {
153 154  
154 155 $(".nav-sidebar li a").removeClass('active');
155 156 $(".nav-sidebar li:nth-child(13) a").addClass('active');
156 157  
157 158 }
158   - else if (window.location.pathname == "/AIA/Link/symptom-navigator") {
  159 + else if (window.location.pathname == "/" + appPath + "/Link/symptom-navigator") {
159 160  
160 161 $(".nav-sidebar li a").removeClass('active');
161 162 $(".nav-sidebar li:nth-child(14) a").addClass('active');
162 163  
163 164 }
164   - else if (window.location.pathname == "/AIA/Link/wellness-tools") {
  165 + else if (window.location.pathname == "/" + appPath + "/Link/wellness-tools") {
165 166  
166 167 $(".nav-sidebar li a").removeClass('active');
167 168 $(".nav-sidebar li:nth-child(15) a").addClass('active');
168 169  
169 170 }
170   - else if (window.location.pathname == "/AIA/ADAM-on-demand") {
  171 + else if (window.location.pathname == "/"+ appPath + "/ADAM-on-demand") {
171 172  
172 173 $(".nav-sidebar li a").removeClass('active');
173 174 $(".nav-sidebar li:nth-child(16) a").addClass('active');
... ...