Commit 2b8460587f543de8c01e2a4615f380c2fe4208ef

Authored by Amrita Vishnoi
2 parents c982ce6d 76ae71d9

Merge branch 'Develop' into QA

150-DOCUMENTATION/001-CONFIGURATION/ADAM Education Servers List-updated.xlsx
No preview for this file type
150-DOCUMENTATION/AIA-TimelinesForIPAD-MAC.xlsx 0 → 100644
No preview for this file type
150-DOCUMENTATION/Audit/Sprints/JulyAugSep/Ebix-Estimation Model_Health_Dev_Product Sprint 40(30-Sep-2017).xlsx 0 → 100644
No preview for this file type
150-DOCUMENTATION/Audit/Sprints/JulyAugSep/Ebix-Estimation Model_Health_Dev_Sep17.xlsx
No preview for this file type
400-SOURCECODE/AIAHTML5.API/Controllers/AuthenticateController.cs
@@ -184,7 +184,14 @@ using System.Data.SqlClient;namespace AIAHTML5.API.Controllers @@ -184,7 +184,14 @@ using System.Data.SqlClient;namespace AIAHTML5.API.Controllers
184 { 184 {
185 //based on old .net code(AIA flex), we get modules based on licenseId if licenseid>0. 185 //based on old .net code(AIA flex), we get modules based on licenseId if licenseid>0.
186 //we verified in database that only superadmin has no licenseid so getting all modules for supeadmin 186 //we verified in database that only superadmin has no licenseid so getting all modules for supeadmin
187 - if (userInfo.UserType == AIAHTML5.API.Models.User.SUPER_ADMIN) 187 + int licenseId, editionId;
  188 + AIAHTML5.API.Models.Users.getLicenseIdForThisUser(userInfo.Id, out licenseId, out editionId);
  189 +
  190 + userInfo.LicenseId = licenseId;
  191 + userInfo.EditionId = editionId;
  192 +
  193 + //if (userInfo.UserType == AIAHTML5.API.Models.User.SUPER_ADMIN)
  194 + if(userInfo.LicenseId == 0)
188 { 195 {
189 userInfo.Modules = AIAHTML5.API.Models.Users.getAllModulesList(); 196 userInfo.Modules = AIAHTML5.API.Models.Users.getAllModulesList();
190 197
@@ -204,11 +211,11 @@ using System.Data.SqlClient;namespace AIAHTML5.API.Controllers @@ -204,11 +211,11 @@ using System.Data.SqlClient;namespace AIAHTML5.API.Controllers
204 private static void CheckLicenseStatus(User userInfo) 211 private static void CheckLicenseStatus(User userInfo)
205 { 212 {
206 //05.1 For normal user need to get the license details, get the license id for authenticated user 213 //05.1 For normal user need to get the license details, get the license id for authenticated user
207 - int licenseId, editionId;  
208 - AIAHTML5.API.Models.Users.getLicenseIdForThisUser(userInfo.Id, out licenseId, out editionId); 214 + //int licenseId, editionId;
  215 + //AIAHTML5.API.Models.Users.getLicenseIdForThisUser(userInfo.Id, out licenseId, out editionId);
209 216
210 - userInfo.LicenseId = licenseId;  
211 - userInfo.EditionId = editionId; 217 + //userInfo.LicenseId = licenseId;
  218 + //userInfo.EditionId = editionId;
212 219
213 //05.2 get license details 220 //05.2 get license details
214 userInfo.LicenseInfo = AIAHTML5.API.Models.Users.getLicenseDetails(userInfo.LicenseId); 221 userInfo.LicenseInfo = AIAHTML5.API.Models.Users.getLicenseDetails(userInfo.LicenseId);
400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js
1 AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile", 1 AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile",
2 function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) { 2 function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) {
3 3
4 - $rootScope.currentActiveModuleTitle = pages[5].name; 4 +
5 $scope.showTabButton = false; 5 $scope.showTabButton = false;
6 $scope.threeDAnatomyData; 6 $scope.threeDAnatomyData;
7 $scope.Id; 7 $scope.Id;
8 $scope.$on('$viewContentLoaded', function (event) { 8 $scope.$on('$viewContentLoaded', function (event) {
9 - 9 + var currentURL = $location.path();
  10 + var selectedModuleName = '';
  11 + //set module title
  12 + angular.forEach($rootScope.userModules, function (value, key) {
  13 + if (value.slug === currentURL.replace('/', '')) {
  14 + selectedModuleName = value.name;
  15 + }
  16 + $rootScope.currentActiveModuleTitle = selectedModuleName;
  17 + })
10 if ($rootScope.refreshcheck == null) { 18 if ($rootScope.refreshcheck == null) {
11 $location.path('/'); 19 $location.path('/');
12 } 20 }
400-SOURCECODE/AIAHTML5.Web/app/controllers/CIController.js
@@ -605,9 +605,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout @@ -605,9 +605,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
605 605
606 if (clickedCIImage.length > 0 && clickedCISummary.length > 0) { 606 if (clickedCIImage.length > 0 && clickedCISummary.length > 0) {
607 607
608 - $rootScope.isLoading = false;  
609 - $('#spinner').css('visibility', 'hidden');  
610 -  
611 $.jsPanel({ 608 $.jsPanel({
612 id: 'ciImagePanel', 609 id: 'ciImagePanel',
613 selector: '.ciView', 610 selector: '.ciView',
@@ -633,6 +630,13 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout @@ -633,6 +630,13 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
633 630
634 }); 631 });
635 632
  633 +
  634 + $('#canvasDiv img').load(function () {
  635 +
  636 + $rootScope.isLoading = false;
  637 + $('#spinner').css('visibility', 'hidden');
  638 + });
  639 +
636 $rootScope.currentSlug = 'clinical-illustrations-detail'; 640 $rootScope.currentSlug = 'clinical-illustrations-detail';
637 641
638 $rootScope.openViews.push( 642 $rootScope.openViews.push(
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -11,7 +11,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -11,7 +11,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
11 $scope.imagePath = ""; 11 $scope.imagePath = "";
12 $rootScope.BodyRegionData; 12 $rootScope.BodyRegionData;
13 $rootScope.BodyRegionCordinatesData; 13 $rootScope.BodyRegionCordinatesData;
14 - $scope.isTransparencyActivated = false; 14 + $rootScope.isTransparencyActivated = false;
  15 + $scope.isTransparencyBtnClicked = false;
15 $rootScope.BodyLayerData; 16 $rootScope.BodyLayerData;
16 $rootScope.VocabTermData; 17 $rootScope.VocabTermData;
17 18
@@ -273,12 +274,34 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -273,12 +274,34 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
273 274
274 }; 275 };
275 276
  277 + $scope.DisableUI = function () {
  278 + var daImagePanelConetent = document.getElementsByClassName("jsPanel-content");
  279 + for (var i = 0; i < daImagePanelConetent.length; i++) {
  280 + daImagePanelConetent[i].style.pointerEvents = "none";
  281 + daImagePanelConetent[i].style.opacity = "0.5";
  282 +
  283 + }
  284 + //to disbale layer change slider
  285 + $('.ui-slider').slider('disable');
  286 + }
276 287
  288 + $scope.EnableUI = function () {
  289 +
  290 + var daImagePanelConetent = document.getElementsByClassName("jsPanel-content");
  291 + for (var i = 0; i < daImagePanelConetent.length; i++) {
  292 + daImagePanelConetent[i].style.pointerEvents = "auto";
  293 + daImagePanelConetent[i].style.opacity = "1";
  294 + }
  295 + //to enable layer change slider
  296 + $('.ui-slider').slider('enable');
  297 +
  298 + }
277 299
278 $scope.openView = function ($event) { 300 $scope.openView = function ($event) {
  301 + $scope.DisableUI();
  302 +
279 $rootScope.disableAnnotationTB = false; 303 $rootScope.disableAnnotationTB = false;
280 $rootScope.MenuModuleName = "DA"; 304 $rootScope.MenuModuleName = "DA";
281 - //alert($rootScope.MenuModuleName);  
282 $rootScope.isLoading = true; 305 $rootScope.isLoading = true;
283 $('#spinner').css('visibility', 'visible'); 306 $('#spinner').css('visibility', 'visible');
284 307
@@ -594,6 +617,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -594,6 +617,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
594 } 617 }
595 618
596 angular.element(document).ready(function (e) { 619 angular.element(document).ready(function (e) {
  620 +
597 $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () { 621 $(document).on("click", "#daImagePanel .jsPanel-hdr .jsPanel-hdr-r .jsPanel-btn-close .jsglyph-remove", function () {
598 $rootScope.selectedBodySystemName = 'All'; 622 $rootScope.selectedBodySystemName = 'All';
599 $rootScope.selectedBodySystemId = 0; 623 $rootScope.selectedBodySystemId = 0;
@@ -979,10 +1003,17 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -979,10 +1003,17 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
979 var canDiv = document.getElementById('canvasDiv'); 1003 var canDiv = document.getElementById('canvasDiv');
980 var canDivChildCount = canDiv.childElementCount; 1004 var canDivChildCount = canDiv.childElementCount;
981 if (canDivChildCount > 0) { 1005 if (canDivChildCount > 0) {
982 - canDiv.innerHTML = '';  
983 1006
984 - //remove transparency scale  
985 - $('#transparencyScale').css('visibility', 'hidden'); 1007 + if ($rootScope.isTransparencyActivated) {
  1008 + $scope.flushCanvas();
  1009 + $('#transparencyScale').css('visibility', 'visible');
  1010 + }
  1011 + else {
  1012 + canDiv.innerHTML = '';
  1013 + //remove transparency scale
  1014 + $('#transparencyScale').css('visibility', 'hidden');
  1015 + }
  1016 +
986 } 1017 }
987 1018
988 if ($scope.ColoredImageSRC != null && $scope.ColoredImageSRC.length > 0) { 1019 if ($scope.ColoredImageSRC != null && $scope.ColoredImageSRC.length > 0) {
@@ -1728,6 +1759,13 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -1728,6 +1759,13 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
1728 } 1759 }
1729 ); 1760 );
1730 } 1761 }
  1762 + //else if ($scope.ColoredImageSRC.length == totalCanvas)
  1763 + //{
  1764 + // // dispatch event for enabling rest UI
  1765 + // alert('all canvas drawn');
  1766 + // $scope.EnableUI();
  1767 + //}
  1768 +
1731 //-NIKI-for solving extarct issue 8286 1769 //-NIKI-for solving extarct issue 8286
1732 1770
1733 var imageCanvas = document.getElementById('imageCanvas' + bodyRegionId + '_MR'); 1771 var imageCanvas = document.getElementById('imageCanvas' + bodyRegionId + '_MR');
@@ -1777,6 +1815,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -1777,6 +1815,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
1777 if ($scope.isExtract == true) { 1815 if ($scope.isExtract == true) {
1778 $rootScope.isLoading = true; 1816 $rootScope.isLoading = true;
1779 $('#spinner').css('visibility', 'visible'); 1817 $('#spinner').css('visibility', 'visible');
  1818 + $scope.DisableUI();
1780 $scope.highLightBody(); 1819 $scope.highLightBody();
1781 } 1820 }
1782 else if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) 1821 else if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true))
@@ -1787,12 +1826,14 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -1787,12 +1826,14 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
1787 $rootScope.isLoading = true; 1826 $rootScope.isLoading = true;
1788 $('#spinner').css('visibility', 'visible'); 1827 $('#spinner').css('visibility', 'visible');
1789 $rootScope.isHighLight = true; 1828 $rootScope.isHighLight = true;
  1829 + $scope.DisableUI();
1790 $scope.highLightBody(); 1830 $scope.highLightBody();
1791 } 1831 }
1792 } 1832 }
1793 else { 1833 else {
1794 $rootScope.isLoading = false; 1834 $rootScope.isLoading = false;
1795 $('#spinner').css('visibility', 'hidden'); 1835 $('#spinner').css('visibility', 'hidden');
  1836 + $scope.EnableUI();
1796 } 1837 }
1797 } 1838 }
1798 1839
@@ -2197,6 +2238,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2197,6 +2238,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2197 if ($scope.isExtract == true) { 2238 if ($scope.isExtract == true) {
2198 $rootScope.isLoading = true; 2239 $rootScope.isLoading = true;
2199 $('#spinner').css('visibility', 'visible'); 2240 $('#spinner').css('visibility', 'visible');
  2241 + $scope.DisableUI();
2200 $scope.highLightBody(); 2242 $scope.highLightBody();
2201 } 2243 }
2202 else if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true)) 2244 else if ($rootScope.isHighLight == true || ($rootScope.isListManagerSelected == true) || (($rootScope.isGenderChnage == true) && ($rootScope.isHighLight == true))
@@ -2211,7 +2253,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2211,7 +2253,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2211 $rootScope.isHighLight = true; 2253 $rootScope.isHighLight = true;
2212 2254
2213 console.log('just before highLightBody call'); 2255 console.log('just before highLightBody call');
2214 - 2256 + $scope.DisableUI();
2215 $scope.highLightBody(); 2257 $scope.highLightBody();
2216 2258
2217 console.log('just after highLightBody call'); 2259 console.log('just after highLightBody call');
@@ -2220,11 +2262,13 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2220,11 +2262,13 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2220 else { 2262 else {
2221 $rootScope.isLoading = false; 2263 $rootScope.isLoading = false;
2222 $('#spinner').css('visibility', 'hidden'); 2264 $('#spinner').css('visibility', 'hidden');
  2265 + $scope.EnableUI();
2223 } 2266 }
2224 } 2267 }
2225 else { 2268 else {
2226 $rootScope.isLoading = false; 2269 $rootScope.isLoading = false;
2227 $('#spinner').css('visibility', 'hidden'); 2270 $('#spinner').css('visibility', 'hidden');
  2271 + $scope.EnableUI();
2228 } 2272 }
2229 } 2273 }
2230 2274
@@ -2514,7 +2558,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2514,7 +2558,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2514 //} 2558 //}
2515 2559
2516 if ($scope.doAligneCanvasWithTerm == true) { 2560 if ($scope.doAligneCanvasWithTerm == true) {
2517 - $scope.aligneCanvasWithTerm() 2561 + $scope.aligneCanvasWithTerm();
  2562 +
  2563 + $scope.EnableUI();
2518 } 2564 }
2519 2565
2520 // $timeout(function () { $scope.DisableProgressBar() }, 1000); 2566 // $timeout(function () { $scope.DisableProgressBar() }, 1000);
@@ -2535,8 +2581,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2535,8 +2581,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2535 2581
2536 $scope.HighlightBodyByTermList = function (TermList) { 2582 $scope.HighlightBodyByTermList = function (TermList) {
2537 2583
2538 - $("#btnTranparency").attr('disabled', 'disabled');  
2539 - $scope.currentLayerNumber = $scope.layerNumber; 2584 + // $("#btnTranparency").attr('disabled', 'disabled');
  2585 + $rootScope.currentLayerNumber = $scope.layerNumber;
2540 2586
2541 $scope.layerNumber = $('#txtlayerNumber').val(); 2587 $scope.layerNumber = $('#txtlayerNumber').val();
2542 2588
@@ -2802,7 +2848,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2802,7 +2848,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2802 2848
2803 $('#spinner').css('visibility', 'hidden'); 2849 $('#spinner').css('visibility', 'hidden');
2804 2850
2805 - 2851 + $scope.EnableUI();
2806 2852
2807 } 2853 }
2808 } 2854 }
@@ -2828,7 +2874,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2828,7 +2874,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2828 document.getElementById("daView").style.pointerEvents="none"; 2874 document.getElementById("daView").style.pointerEvents="none";
2829 $('.ui-slider').slider('disable'); 2875 $('.ui-slider').slider('disable');
2830 $("#btnTranparency").attr('disabled', 'disabled'); 2876 $("#btnTranparency").attr('disabled', 'disabled');
2831 - $scope.currentLayerNumber = $scope.layerNumber; 2877 + $rootScope.currentLayerNumber = $scope.layerNumber;
2832 2878
2833 $scope.layerNumber = $('#txtlayerNumber').val(); 2879 $scope.layerNumber = $('#txtlayerNumber').val();
2834 2880
@@ -2837,7 +2883,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -2837,7 +2883,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
2837 2883
2838 2884
2839 if ($rootScope.isHighLight == true) { 2885 if ($rootScope.isHighLight == true) {
2840 - false; 2886 + $rootScope.isHighLight = false;
  2887 + $scope.CloseTransparencyBox();
2841 } 2888 }
2842 2889
2843 console.log('HighlightBodyByTermListForBodySystem is called'); 2890 console.log('HighlightBodyByTermListForBodySystem is called');
@@ -3075,9 +3122,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -3075,9 +3122,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
3075 $('#spinner').css('visibility', 'hidden') 3122 $('#spinner').css('visibility', 'hidden')
3076 $rootScope.isLoading = false; 3123 $rootScope.isLoading = false;
3077 3124
3078 - document.getElementById("daView").style.pointerEvents = "auto";  
3079 - $('.ui-slider').slider('enable');  
3080 - 3125 + //document.getElementById("daView").style.pointerEvents = "auto";
  3126 + //$('.ui-slider').slider('enable');
  3127 + $scope.EnableUI();
3081 prevBRID = TermExistInBodyRegionId; 3128 prevBRID = TermExistInBodyRegionId;
3082 3129
3083 $scope.scrollToHighlightedBodyRegion(TermExistInBodyRegionId); 3130 $scope.scrollToHighlightedBodyRegion(TermExistInBodyRegionId);
@@ -3291,6 +3338,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -3291,6 +3338,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
3291 //layer change function 3338 //layer change function
3292 $scope.LayerChange = function () { 3339 $scope.LayerChange = function () {
3293 3340
  3341 + $scope.DisableUI();
3294 3342
3295 //if listanager is visisble then close it 3343 //if listanager is visisble then close it
3296 // $rootScope.isListManagerSelected = false; 3344 // $rootScope.isListManagerSelected = false;
@@ -3310,7 +3358,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -3310,7 +3358,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
3310 // $('#daLoaderLabel').css('visibility', 'visible'); 3358 // $('#daLoaderLabel').css('visibility', 'visible');
3311 3359
3312 3360
3313 - if ($scope.isTransparencyActivated) { 3361 + if ($rootScope.isTransparencyActivated) {
3314 3362
3315 //crete temp canavs to store the original data which will be used to chnange the transparency 3363 //crete temp canavs to store the original data which will be used to chnange the transparency
3316 if (document.getElementById('tempCanvas') != null) { 3364 if (document.getElementById('tempCanvas') != null) {
@@ -3461,11 +3509,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -3461,11 +3509,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
3461 var dataLength = $rootScope.BodyLayerData.Layers.DataLayer.length; 3509 var dataLength = $rootScope.BodyLayerData.Layers.DataLayer.length;
3462 if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) { 3510 if (parseInt($('#txtlayerNumber').val()) > (dataLength - 1)) {
3463 $('#txtlayerNumber').val(dataLength - 1); 3511 $('#txtlayerNumber').val(dataLength - 1);
3464 - $scope.currentLayerNumber = parseInt(dataLength - 1); 3512 + $rootScope.currentLayerNumber = parseInt(dataLength - 1);
3465 $scope.layerNumber = parseInt(dataLength - 1); 3513 $scope.layerNumber = parseInt(dataLength - 1);
3466 } 3514 }
3467 else 3515 else
3468 - $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); 3516 + $rootScope.currentLayerNumber = parseInt($('#txtlayerNumber').val());
3469 3517
3470 //$scope.isMousUp(); 3518 //$scope.isMousUp();
3471 3519
@@ -3910,6 +3958,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -3910,6 +3958,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
3910 document.getElementById('dot').style.display = 'block'; 3958 document.getElementById('dot').style.display = 'block';
3911 document.getElementById('dot').style.left = ((Globe[0].currentX) - 10) + 'px'; 3959 document.getElementById('dot').style.left = ((Globe[0].currentX) - 10) + 'px';
3912 document.getElementById('dot').style.top = ((Globe[0].currentY) + 10) + 'px'; 3960 document.getElementById('dot').style.top = ((Globe[0].currentY) + 10) + 'px';
  3961 + document.getElementById('bord').style.display = 'block';
  3962 + document.getElementById('bord').style.left = ((Globe[0].currentX) - 2) + 'px';
  3963 + document.getElementById('bord').style.top = ((Globe[0].currentY) + 1) + 'px';
3913 document.getElementById('sppeachBubble').style.display = 'block'; 3964 document.getElementById('sppeachBubble').style.display = 'block';
3914 document.getElementById('sppeachBubble').style.left = (Globe[0].currentX) + 'px'; 3965 document.getElementById('sppeachBubble').style.left = (Globe[0].currentX) + 'px';
3915 document.getElementById('sppeachBubble').style.top = (Globe[0].currentY) + 'px'; 3966 document.getElementById('sppeachBubble').style.top = (Globe[0].currentY) + 'px';
@@ -4108,6 +4159,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4108,6 +4159,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4108 document.getElementById('dot_annotation').style.display = 'block'; 4159 document.getElementById('dot_annotation').style.display = 'block';
4109 document.getElementById('dot_annotation').style.left = ((Globe[0].currentX) - 10) + 'px'; 4160 document.getElementById('dot_annotation').style.left = ((Globe[0].currentX) - 10) + 'px';
4110 document.getElementById('dot_annotation').style.top = ((Globe[0].currentY) + 10) + 'px'; 4161 document.getElementById('dot_annotation').style.top = ((Globe[0].currentY) + 10) + 'px';
  4162 + document.getElementById('bord_annotation').style.display = 'block';
  4163 + document.getElementById('bord_annotation').style.left = ((Globe[0].currentX) - 2) + 'px';
  4164 + document.getElementById('bord_annotation').style.top = ((Globe[0].currentY) + 1) + 'px';
4111 document.getElementById('sppeachBubble_annotation').style.display = 'block'; 4165 document.getElementById('sppeachBubble_annotation').style.display = 'block';
4112 document.getElementById('sppeachBubble_annotation').style.left = (Globe[0].currentX) + 'px'; 4166 document.getElementById('sppeachBubble_annotation').style.left = (Globe[0].currentX) + 'px';
4113 document.getElementById('sppeachBubble_annotation').style.top = (Globe[0].currentY) + 'px'; 4167 document.getElementById('sppeachBubble_annotation').style.top = (Globe[0].currentY) + 'px';
@@ -4311,9 +4365,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4311,9 +4365,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4311 4365
4312 document.getElementById('canvasDiv').removeEventListener("mousedown", mouseDownListener); 4366 document.getElementById('canvasDiv').removeEventListener("mousedown", mouseDownListener);
4313 //Dated:19-07-2016 Issue#4975: Transparency box should not be clickable if it is already selected. 4367 //Dated:19-07-2016 Issue#4975: Transparency box should not be clickable if it is already selected.
4314 - if ($("#txtlayerNumber").val() != 0 && $scope.currentLayerNumber != undefined) {  
4315 - $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.currentLayerNumber));  
4316 - $("#txtlayerNumber").val(parseInt($scope.currentLayerNumber)); 4368 + if ($("#txtlayerNumber").val() != 0 && $rootScope.currentLayerNumber != undefined) {
  4369 + $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($rootScope.currentLayerNumber));
  4370 + $("#txtlayerNumber").val(parseInt($rootScope.currentLayerNumber));
4317 } 4371 }
4318 4372
4319 } 4373 }
@@ -4347,6 +4401,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4347,6 +4401,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4347 4401
4348 function mouseUpListener(e) { 4402 function mouseUpListener(e) {
4349 4403
  4404 + $scope.DisableUI();
  4405 +
4350 $scope.isTBDrawnOnBodyRegion = false; 4406 $scope.isTBDrawnOnBodyRegion = false;
4351 4407
4352 $(".com").remove(); 4408 $(".com").remove();
@@ -4358,7 +4414,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4358,7 +4414,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4358 var previewRectangleHeight = $('.rectangle').height() 4414 var previewRectangleHeight = $('.rectangle').height()
4359 4415
4360 4416
4361 - $scope.currentLayerNumber = parseInt($('#txtlayerNumber').val()); 4417 + $rootScope.currentLayerNumber = parseInt($('#txtlayerNumber').val());
4362 $('.rectangle').remove(); 4418 $('.rectangle').remove();
4363 4419
4364 var currentMousePosition = $scope.getMousePos(e); 4420 var currentMousePosition = $scope.getMousePos(e);
@@ -4406,7 +4462,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4406,7 +4462,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4406 } 4462 }
4407 4463
4408 4464
4409 - $scope.isTransparencyActivated = true; 4465 + $rootScope.isTransparencyActivated = true;
  4466 + $scope.isTransparencyBtnClicked = false;
4410 4467
4411 var BodyRegionDictionary = $rootScope.BodyRegionCordinatesData; 4468 var BodyRegionDictionary = $rootScope.BodyRegionCordinatesData;
4412 4469
@@ -4537,8 +4594,10 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4537,8 +4594,10 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4537 }) 4594 })
4538 4595
4539 //for modesty 4596 //for modesty
4540 - if ($rootScope.isModestyOn == true && $scope.modestyImageInfo.length > 0) {  
4541 - $.each($scope.modestyImageInfo, function (index, value) { 4597 + //if ($rootScope.isModestyOn == true && $scope.modestyImageInfo.length > 0) {
  4598 + if ($scope.modestyImageInfo.length > 0) {
  4599 +
  4600 + $.each($scope.modestyImageInfo, function (index, value) {
4542 4601
4543 var tBoxDimesions = $scope.getTBoxDimesions($scope.TransparencyBoxStartX, TransparencyEndX, $scope.TransparencyBoxStartY, TransparencyBoxEndY, value.x, value.y, value.Height, value.Width); 4602 var tBoxDimesions = $scope.getTBoxDimesions($scope.TransparencyBoxStartX, TransparencyEndX, $scope.TransparencyBoxStartY, TransparencyBoxEndY, value.x, value.y, value.Height, value.Width);
4544 4603
@@ -4582,7 +4641,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4582,7 +4641,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4582 4641
4583 $('#btnTranparency').addClass('tButtonActive'); 4642 $('#btnTranparency').addClass('tButtonActive');
4584 4643
4585 - // $('#txtlayerNumber').val((parseInt($scope.currentLayerNumber)) + 1); 4644 + // $('#txtlayerNumber').val((parseInt($rootScope.currentLayerNumber)) + 1);
4586 //Dated:18-07-2016 Issue#4975: Transparency box should not be clickable if it is already selected. 4645 //Dated:18-07-2016 Issue#4975: Transparency box should not be clickable if it is already selected.
4587 $('#btnTranparency').removeClass('tButtonActive'); 4646 $('#btnTranparency').removeClass('tButtonActive');
4588 $('#btnTranparency').addClass('btn-black'); 4647 $('#btnTranparency').addClass('btn-black');
@@ -4672,7 +4731,6 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4672,7 +4731,6 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4672 4731
4673 $scope.loadTransparencyImage = function (bodyRegionId, Height, Width, X, Y, IsMirror, TransparencyBoxStartX, TransparencyEndX, TransparencyBoxStartY, TransparencyBoxEndY, scope, isLayerChanged, isTransparencyChanged, isResized) { 4732 $scope.loadTransparencyImage = function (bodyRegionId, Height, Width, X, Y, IsMirror, TransparencyBoxStartX, TransparencyEndX, TransparencyBoxStartY, TransparencyBoxEndY, scope, isLayerChanged, isTransparencyChanged, isResized) {
4674 4733
4675 -  
4676 var transparencyCanvas = document.getElementById('transparencyCanvas'); 4734 var transparencyCanvas = document.getElementById('transparencyCanvas');
4677 4735
4678 TransparencyBoxStartX = parseInt((transparencyCanvas.style.left).replace('px', '')); 4736 TransparencyBoxStartX = parseInt((transparencyCanvas.style.left).replace('px', ''));
@@ -4692,6 +4750,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4692,6 +4750,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4692 var HeightforTransImage = TBImageDimensions.HeightforTransImageTB; 4750 var HeightforTransImage = TBImageDimensions.HeightforTransImageTB;
4693 var YforTransImage = TBImageDimensions.YforTransImageTB; 4751 var YforTransImage = TBImageDimensions.YforTransImageTB;
4694 4752
  4753 +
4695 //0. get current layer number 4754 //0. get current layer number
4696 if (isResized) { 4755 if (isResized) {
4697 //do nothing 4756 //do nothing
@@ -4727,7 +4786,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4727,7 +4786,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4727 var tranparencyImgSrc; 4786 var tranparencyImgSrc;
4728 var tranparencyMaskImgSrc; 4787 var tranparencyMaskImgSrc;
4729 4788
4730 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 4789 + if ((bodyRegionId.match('modestyImg'))) {
4731 var modestyBodyRegionData = new jinqJs() 4790 var modestyBodyRegionData = new jinqJs()
4732 .from($scope.modestyImageInfo) 4791 .from($scope.modestyImageInfo)
4733 .where('bodyRegionId == ' + bodyRegionId) 4792 .where('bodyRegionId == ' + bodyRegionId)
@@ -4777,8 +4836,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4777,8 +4836,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4777 transparencyTempcanavsMask.id = 'transparencyTempCanvasMask_MR' + bodyRegionId + '_mci'; 4836 transparencyTempcanavsMask.id = 'transparencyTempCanvasMask_MR' + bodyRegionId + '_mci';
4778 } 4837 }
4779 else { 4838 else {
4780 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4781 - transparencyTempCanvas.id = 'transparencyTempCanvas_' + bodyRegionId; 4839 + if ((bodyRegionId.match('modestyImg'))) {
  4840 +
  4841 + transparencyTempCanvas.id = 'transparencyTempCanvas_' + bodyRegionId;
4782 4842
4783 } 4843 }
4784 else { 4844 else {
@@ -4798,7 +4858,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4798,7 +4858,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4798 document.getElementById('canvasDiv').appendChild(transparencyTempCanvas); 4858 document.getElementById('canvasDiv').appendChild(transparencyTempCanvas);
4799 4859
4800 //create temp mask canvas 4860 //create temp mask canvas
4801 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { } 4861 + if ((bodyRegionId.match('modestyImg'))) { }
  4862 +
4802 else { 4863 else {
4803 transparencyTempcanavsMask.height = Height; 4864 transparencyTempcanavsMask.height = Height;
4804 transparencyTempcanavsMask.width = Width; 4865 transparencyTempcanavsMask.width = Width;
@@ -4811,10 +4872,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4811,10 +4872,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4811 } 4872 }
4812 4873
4813 //for modesty canvas 4874 //for modesty canvas
4814 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 4875 + if ((bodyRegionId.match('modestyImg'))) {
4815 4876
4816 var modestyTransTempCanvasId = 'tempCanvasModesty_' + bodyRegionId; 4877 var modestyTransTempCanvasId = 'tempCanvasModesty_' + bodyRegionId;
4817 var modestyTransCanvasId = 'modestyTransCanavs_' + bodyRegionId; 4878 var modestyTransCanvasId = 'modestyTransCanavs_' + bodyRegionId;
  4879 +
4818 if (document.getElementById(modestyTransTempCanvasId) != null) { 4880 if (document.getElementById(modestyTransTempCanvasId) != null) {
4819 document.getElementById(modestyTransTempCanvasId).parentNode.removeChild(document.getElementById(modestyTransTempCanvasId)); 4881 document.getElementById(modestyTransTempCanvasId).parentNode.removeChild(document.getElementById(modestyTransTempCanvasId));
4820 } 4882 }
@@ -4829,7 +4891,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4829,7 +4891,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4829 tempCanvasModesty.style.top = 10 + 'px'; 4891 tempCanvasModesty.style.top = 10 + 'px';
4830 tempCanvasModesty.style.backgroundColor = "transparent"; 4892 tempCanvasModesty.style.backgroundColor = "transparent";
4831 tempCanvasModesty.style.visibility = 'hidden'; 4893 tempCanvasModesty.style.visibility = 'hidden';
4832 - tempCanvasModesty.style.border = "black 1px solid"; 4894 + // tempCanvasModesty.style.border = "black 1px solid";
4833 document.getElementById('canvasDiv').appendChild(tempCanvasModesty); 4895 document.getElementById('canvasDiv').appendChild(tempCanvasModesty);
4834 } 4896 }
4835 if (document.getElementById(modestyTransCanvasId) != null) { 4897 if (document.getElementById(modestyTransCanvasId) != null) {
@@ -4837,16 +4899,21 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4837,16 +4899,21 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4837 } 4899 }
4838 4900
4839 if (document.getElementById(modestyTransCanvasId) == null || document.getElementById(modestyTransCanvasId) == undefined) { 4901 if (document.getElementById(modestyTransCanvasId) == null || document.getElementById(modestyTransCanvasId) == undefined) {
4840 - $rootScope.isTBoxModestyVisible = true; 4902 +
4841 var canvasModesty = document.createElement('canvas'); 4903 var canvasModesty = document.createElement('canvas');
4842 canvasModesty.id = modestyTransCanvasId; 4904 canvasModesty.id = modestyTransCanvasId;
  4905 + canvasModesty.className = 'transModestyImg'
4843 canvasModesty.height = Height; 4906 canvasModesty.height = Height;
4844 canvasModesty.width = Width; 4907 canvasModesty.width = Width;
4845 canvasModesty.style.position = "absolute"; 4908 canvasModesty.style.position = "absolute";
4846 canvasModesty.style.left = X + 'px'; 4909 canvasModesty.style.left = X + 'px';
4847 canvasModesty.style.top = Y + 'px'; 4910 canvasModesty.style.top = Y + 'px';
4848 - canvasModesty.style.visibility = 'visible';  
4849 - if($rootScope.currentBodyViewId=="11"){ 4911 + if ($rootScope.isModestyOn == true) {
  4912 + canvasModesty.style.visibility = 'visible';
  4913 + $rootScope.isTBoxModestyVisible = true;
  4914 + }
  4915 + else
  4916 + canvasModesty.style.visibility = 'hidden';
4850 4917
4851 canvasModesty.style.zIndex = 11000; 4918 canvasModesty.style.zIndex = 11000;
4852 } 4919 }
@@ -4867,8 +4934,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4867,8 +4934,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4867 tempCanvasID = 'transparencyTempCanvas_MR_' + bodyRegionId; 4934 tempCanvasID = 'transparencyTempCanvas_MR_' + bodyRegionId;
4868 } 4935 }
4869 else { 4936 else {
4870 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4871 - tempCanvasID = 'transparencyTempCanvas_' + bodyRegionId;//bodyRegionId; 4937 + if ((bodyRegionId.match('modestyImg'))) {
  4938 +
  4939 + tempCanvasID = 'transparencyTempCanvas_' + bodyRegionId;//bodyRegionId;
4872 } 4940 }
4873 else 4941 else
4874 tempCanvasID = 'transparencyTempCanvas_' + bodyRegionId; 4942 tempCanvasID = 'transparencyTempCanvas_' + bodyRegionId;
@@ -4908,7 +4976,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4908,7 +4976,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4908 if ($rootScope.isHighLight != true) { 4976 if ($rootScope.isHighLight != true) {
4909 4977
4910 4978
4911 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 4979 + if ((bodyRegionId.match('modestyImg'))) {
  4980 +
4912 var modestyTempCanvasId = 'tempCanvasModesty_' + bodyRegionId; 4981 var modestyTempCanvasId = 'tempCanvasModesty_' + bodyRegionId;
4913 if (document.getElementById(modestyTempCanvasId) != undefined || document.getElementById(modestyTempCanvasId) != null) { 4982 if (document.getElementById(modestyTempCanvasId) != undefined || document.getElementById(modestyTempCanvasId) != null) {
4914 var contxModestyTemp = document.getElementById(modestyTempCanvasId).getContext('2d'); 4983 var contxModestyTemp = document.getElementById(modestyTempCanvasId).getContext('2d');
@@ -4963,7 +5032,6 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4963,7 +5032,6 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4963 } 5032 }
4964 5033
4965 //set modesty image visiblility true/false as per layer 5034 //set modesty image visiblility true/false as per layer
4966 - // if(bodyRegionId.match('modestyImg3'))  
4967 var BRID = ''; 5035 var BRID = '';
4968 if (bodyRegionId.match('modestyImg') && document.getElementById('modestyTransCanavs_' + bodyRegionId) != null) { 5036 if (bodyRegionId.match('modestyImg') && document.getElementById('modestyTransCanavs_' + bodyRegionId) != null) {
4969 BRID = bodyRegionId[bodyRegionId.length - 1]; 5037 BRID = bodyRegionId[bodyRegionId.length - 1];
@@ -4989,7 +5057,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -4989,7 +5057,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
4989 5057
4990 var modestyCanavs = document.getElementById(modestyTransCanvases[j].id); 5058 var modestyCanavs = document.getElementById(modestyTransCanvases[j].id);
4991 5059
4992 - if ((parseInt(lowerlayerNumberForModesty) <= parseInt($scope.layerNumber)) && (HigherlayerNumberForModesty) > parseInt($scope.layerNumber)) { 5060 + if ($rootScope.isModestyOn == true && (parseInt(lowerlayerNumberForModesty) <= parseInt($scope.layerNumber)) && (HigherlayerNumberForModesty) > parseInt($scope.layerNumber)) {
4993 5061
4994 modestyCanavs.style.visibility = 'visible'; 5062 modestyCanavs.style.visibility = 'visible';
4995 } 5063 }
@@ -5026,7 +5094,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5026,7 +5094,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5026 XforCopyImage = 0; 5094 XforCopyImage = 0;
5027 WidthforCopyImage = Width; 5095 WidthforCopyImage = Width;
5028 WidthforTransImage = Width; 5096 WidthforTransImage = Width;
5029 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5097 +
  5098 + if ((bodyRegionId.match('modestyImg'))) {
5030 XforTransImage = 0; 5099 XforTransImage = 0;
5031 } 5100 }
5032 else 5101 else
@@ -5040,7 +5109,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5040,7 +5109,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5040 5109
5041 WidthforTransImage = parseInt(TransparencyEndX) - parseInt(X); 5110 WidthforTransImage = parseInt(TransparencyEndX) - parseInt(X);
5042 5111
5043 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5112 + if ((bodyRegionId.match('modestyImg'))) {
5044 XforTransImage = 0; 5113 XforTransImage = 0;
5045 } 5114 }
5046 else 5115 else
@@ -5053,7 +5122,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5053,7 +5122,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5053 WidthforCopyImage = parseInt(X) + parseInt(Width) - parseInt(TransparencyBoxStartX); 5122 WidthforCopyImage = parseInt(X) + parseInt(Width) - parseInt(TransparencyBoxStartX);
5054 WidthforTransImage = parseInt(X) + parseInt(Width) - parseInt(TransparencyBoxStartX); 5123 WidthforTransImage = parseInt(X) + parseInt(Width) - parseInt(TransparencyBoxStartX);
5055 5124
5056 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5125 + if ((bodyRegionId.match('modestyImg'))) {
5057 5126
5058 XforTransImage = parseInt(TransparencyBoxStartX) - parseInt(X); 5127 XforTransImage = parseInt(TransparencyBoxStartX) - parseInt(X);
5059 } 5128 }
@@ -5064,7 +5133,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5064,7 +5133,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5064 XforCopyImage = parseInt(TransparencyBoxStartX) - parseInt(X);//parseInt(X) + parseInt(Width) - parseInt(scope.TransparencyBoxStartX)// scope.TransparencyBoxStartX ; 5133 XforCopyImage = parseInt(TransparencyBoxStartX) - parseInt(X);//parseInt(X) + parseInt(Width) - parseInt(scope.TransparencyBoxStartX)// scope.TransparencyBoxStartX ;
5065 WidthforCopyImage = parseInt(TransparencyEndX) - parseInt(TransparencyBoxStartX); 5134 WidthforCopyImage = parseInt(TransparencyEndX) - parseInt(TransparencyBoxStartX);
5066 WidthforTransImage = parseInt(TransparencyEndX) - parseInt(TransparencyBoxStartX); 5135 WidthforTransImage = parseInt(TransparencyEndX) - parseInt(TransparencyBoxStartX);
5067 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5136 + if ((bodyRegionId.match('modestyImg'))) {
5068 5137
5069 XforTransImage = parseInt(TransparencyBoxStartX) - parseInt(X); 5138 XforTransImage = parseInt(TransparencyBoxStartX) - parseInt(X);
5070 } 5139 }
@@ -5081,7 +5150,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5081,7 +5150,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5081 HeightforCopyImage = Height; 5150 HeightforCopyImage = Height;
5082 5151
5083 HeightforTransImage = Height; 5152 HeightforTransImage = Height;
5084 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5153 +
  5154 + if ((bodyRegionId.match('modestyImg'))) {
5085 YforTransImage = 0; 5155 YforTransImage = 0;
5086 } 5156 }
5087 else 5157 else
@@ -5094,7 +5164,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5094,7 +5164,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5094 5164
5095 HeightforTransImage = (parseInt(TransparencyBoxEndY)) - parseInt(Y)// - parseInt(scope.TransparencyBoxStartY)); 5165 HeightforTransImage = (parseInt(TransparencyBoxEndY)) - parseInt(Y)// - parseInt(scope.TransparencyBoxStartY));
5096 5166
5097 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5167 + if ((bodyRegionId.match('modestyImg'))) {
5098 YforTransImage = 0; 5168 YforTransImage = 0;
5099 } 5169 }
5100 else 5170 else
@@ -5106,8 +5176,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5106,8 +5176,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5106 YforCopyImage = parseInt(TransparencyBoxStartY) - parseInt(Y); 5176 YforCopyImage = parseInt(TransparencyBoxStartY) - parseInt(Y);
5107 HeightforCopyImage = parseInt(Y) + parseInt(Height) - parseInt(TransparencyBoxStartY); 5177 HeightforCopyImage = parseInt(Y) + parseInt(Height) - parseInt(TransparencyBoxStartY);
5108 HeightforTransImage = parseInt(Y) + parseInt(Height) - parseInt(TransparencyBoxStartY); 5178 HeightforTransImage = parseInt(Y) + parseInt(Height) - parseInt(TransparencyBoxStartY);
5109 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
5110 - YforTransImage = parseInt(TransparencyBoxStartY) - parseInt(Y); 5179 +
  5180 + if ((bodyRegionId.match('modestyImg'))) {
  5181 + YforTransImage = parseInt(TransparencyBoxStartY) - parseInt(Y);
5111 5182
5112 } 5183 }
5113 else 5184 else
@@ -5119,7 +5190,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5119,7 +5190,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5119 YforCopyImage = parseInt(TransparencyBoxStartY) - parseInt(Y); 5190 YforCopyImage = parseInt(TransparencyBoxStartY) - parseInt(Y);
5120 HeightforCopyImage = parseInt(TransparencyBoxEndY) - parseInt(TransparencyBoxStartY); 5191 HeightforCopyImage = parseInt(TransparencyBoxEndY) - parseInt(TransparencyBoxStartY);
5121 HeightforTransImage = parseInt(TransparencyBoxEndY) - parseInt(TransparencyBoxStartY); 5192 HeightforTransImage = parseInt(TransparencyBoxEndY) - parseInt(TransparencyBoxStartY);
5122 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5193 +
  5194 + if ((bodyRegionId.match('modestyImg'))) {
5123 YforTransImage = parseInt(TransparencyBoxStartY) - parseInt(Y); 5195 YforTransImage = parseInt(TransparencyBoxStartY) - parseInt(Y);
5124 5196
5125 } 5197 }
@@ -5196,6 +5268,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5196,6 +5268,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5196 5268
5197 $scope.DrawOnTBWithSelectedTransparency = function (tempCanvasID, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage, Height, Width, bodyRegionId, isLayerChanged, isResized) { 5269 $scope.DrawOnTBWithSelectedTransparency = function (tempCanvasID, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage, Height, Width, bodyRegionId, isLayerChanged, isResized) {
5198 5270
  5271 +
  5272 +
5199 var transNumber = $scope.transNumber;//txtTransparencyChange.value; 5273 var transNumber = $scope.transNumber;//txtTransparencyChange.value;
5200 //this changes the transparency when transparency is already activated and user resizes or chage the layer 5274 //this changes the transparency when transparency is already activated and user resizes or chage the layer
5201 5275
@@ -5242,7 +5316,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5242,7 +5316,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5242 5316
5243 5317
5244 var ctx; 5318 var ctx;
5245 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5319 + if ((bodyRegionId.match('modestyImg'))) {
  5320 +
5246 var modestyTransCanvasId = 'modestyTransCanavs_' + bodyRegionId 5321 var modestyTransCanvasId = 'modestyTransCanavs_' + bodyRegionId
5247 ctx = document.getElementById(modestyTransCanvasId).getContext('2d'); 5322 ctx = document.getElementById(modestyTransCanvasId).getContext('2d');
5248 } 5323 }
@@ -5253,7 +5328,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5253,7 +5328,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5253 ctx.drawImage(tmpCanvasContext, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage) 5328 ctx.drawImage(tmpCanvasContext, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage)
5254 5329
5255 5330
5256 - if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { 5331 + if ((bodyRegionId.match('modestyImg'))) {
5257 5332
5258 var imageD1 = ctx.getImageData(0, 0, Width, Height); 5333 var imageD1 = ctx.getImageData(0, 0, Width, Height);
5259 var imageData1 = imageD1.data; 5334 var imageData1 = imageD1.data;
@@ -5268,8 +5343,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5268,8 +5343,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5268 5343
5269 } 5344 }
5270 5345
5271 -  
5272 ctx.putImageData(imageD1, 0, 0); 5346 ctx.putImageData(imageD1, 0, 0);
  5347 + if ($rootScope.isModestyOn)
  5348 + document.getElementById('modestyTransCanavs_' + bodyRegionId).style.visibility = 'visible';
  5349 + else
  5350 + document.getElementById('modestyTransCanavs_' + bodyRegionId).style.visibility = 'hidden';
5273 5351
5274 } 5352 }
5275 5353
@@ -5288,6 +5366,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -5288,6 +5366,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
5288 5366
5289 5367
5290 } 5368 }
  5369 +
  5370 + $scope.EnableUI();
5291 } 5371 }
5292 5372
5293 5373
@@ -6293,7 +6373,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6293,7 +6373,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6293 6373
6294 // $rootScope.switchCanvas(); 6374 // $rootScope.switchCanvas();
6295 //To enable extract button 6375 //To enable extract button
6296 - $scope.isTransparencyActivated = false; 6376 + $rootScope.isTransparencyActivated = false;
6297 $("#btnExtract").removeClass("disabled"); 6377 $("#btnExtract").removeClass("disabled");
6298 6378
6299 6379
@@ -6339,12 +6419,12 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6339,12 +6419,12 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6339 6419
6340 6420
6341 6421
6342 - $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($scope.currentLayerNumber)); 6422 + $('#layerChangeSlider').slider("option", "value", parseInt($rootScope.totalLayers) - parseInt($rootScope.currentLayerNumber));
6343 //if ($scope.isGenderChnage || $rootScope.isViewChange) { 6423 //if ($scope.isGenderChnage || $rootScope.isViewChange) {
6344 // $("#txtlayerNumber").val(parseInt(0)); 6424 // $("#txtlayerNumber").val(parseInt(0));
6345 //} 6425 //}
6346 //else 6426 //else
6347 - $("#txtlayerNumber").val(parseInt($scope.currentLayerNumber)); 6427 + $("#txtlayerNumber").val(parseInt($rootScope.currentLayerNumber));
6348 6428
6349 6429
6350 if (document.getElementById('tempCanvas') != null) { 6430 if (document.getElementById('tempCanvas') != null) {
@@ -6356,7 +6436,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6356,7 +6436,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6356 //var scope = angular.element(document.getElementById("DAView")).scope(); 6436 //var scope = angular.element(document.getElementById("DAView")).scope();
6357 //scope.$apply(function () { 6437 //scope.$apply(function () {
6358 // $scope.layerNumber = 0; 6438 // $scope.layerNumber = 0;
6359 - // $scope.isTransparencyActivated = false; 6439 + // $rootScope.isTransparencyActivated = false;
6360 //}) 6440 //})
6361 6441
6362 6442
@@ -6369,7 +6449,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6369,7 +6449,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6369 6449
6370 //$("canvas[name*='transparencyTempCanvas']").nextUntil($("canvas[name*='transparencyTempCanvas']")) 6450 //$("canvas[name*='transparencyTempCanvas']").nextUntil($("canvas[name*='transparencyTempCanvas']"))
6371 //.remove(); 6451 //.remove();
6372 - $scope.layerNumber = $scope.currentLayerNumber; 6452 + $scope.layerNumber = $rootScope.currentLayerNumber;
6373 $scope.transNumber = 100; 6453 $scope.transNumber = 100;
6374 $(".slider").slider({ value: 100 }) 6454 $(".slider").slider({ value: 100 })
6375 } 6455 }
@@ -6385,7 +6465,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6385,7 +6465,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6385 6465
6386 $('#transparencyScale').css('visibility', 'hidden'); 6466 $('#transparencyScale').css('visibility', 'hidden');
6387 6467
6388 - //$scope.isTransparencyActivated = false; 6468 + //$rootScope.isTransparencyActivated = false;
6389 // document.getElementById('btnTranparency').className = 't-transparency' 6469 // document.getElementById('btnTranparency').className = 't-transparency'
6390 $('#btnTranparency').removeClass('tButtonActive'); 6470 $('#btnTranparency').removeClass('tButtonActive');
6391 $('#btnTranparency').addClass('btn-black'); 6471 $('#btnTranparency').addClass('btn-black');
@@ -6513,7 +6593,14 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6513,7 +6593,14 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6513 $('.btnCursor').removeClass('activebtncolor'); 6593 $('.btnCursor').removeClass('activebtncolor');
6514 $(".annotationTollbar").css("display", "none"); 6594 $(".annotationTollbar").css("display", "none");
6515 $("#annotationButton").removeClass("active"); 6595 $("#annotationButton").removeClass("active");
6516 - $("#btnExtract").removeClass("disabled"); 6596 + if ($scope.isTransparencyBtnClicked == true && !$scope.isTransparencyActivated) {
  6597 + $("#btnExtract").addClass("disabled");
  6598 + $('#btnTranparency').addClass('tButtonActive');
  6599 + $('#btnTranparency').removeClass('btn-black');
  6600 + }
  6601 + else
  6602 + $("#btnExtract").removeClass("disabled");
  6603 +
6517 $("#btnTranparency").removeClass("disabled"); 6604 $("#btnTranparency").removeClass("disabled");
6518 $rootScope.isTransparencyBoxActivated = false; 6605 $rootScope.isTransparencyBoxActivated = false;
6519 $rootScope.isNormalMode = false; 6606 $rootScope.isNormalMode = false;
@@ -6533,7 +6620,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6533,7 +6620,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6533 6620
6534 $scope.terminateCurrentlyRunningWPs(); 6621 $scope.terminateCurrentlyRunningWPs();
6535 6622
6536 - if ($scope.isTransparencyActivated) { 6623 + if ($rootScope.isTransparencyActivated) {
6537 6624
6538 $scope.CloseTransparencyBox(); 6625 $scope.CloseTransparencyBox();
6539 6626
@@ -6676,16 +6763,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6676,16 +6763,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6676 6763
6677 $scope.enableHighlight = function () { 6764 $scope.enableHighlight = function () {
6678 6765
6679 -  
6680 - // $("#btnExtract").removeClass("disabled");  
6681 - // $("#btnTranparency").removeClass("disabled"); 6766 + $scope.DisableUI();
  6767 +
6682 $("#btnTranparency").removeAttr('disabled', 'disabled'); 6768 $("#btnTranparency").removeAttr('disabled', 'disabled');
6683 - // $rootScope.isTransparencyBoxActivated = false;  
6684 - // $rootScope.isNormalMode = false;  
6685 6769
6686 //if listanager is visisble then close it 6770 //if listanager is visisble then close it
6687 -  
6688 - // $rootScope.isListManagerSelected = false;  
6689 $rootScope.CloseListManager(); 6771 $rootScope.CloseListManager();
6690 6772
6691 6773
@@ -6694,7 +6776,6 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6694,7 +6776,6 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6694 //to make the system highlight if the body systme highlighted than Normal and again highlight 6776 //to make the system highlight if the body systme highlighted than Normal and again highlight
6695 $scope.isbodySystemHighlight = true; 6777 $scope.isbodySystemHighlight = true;
6696 } 6778 }
6697 - // $rootScope.isHighlightBodyByBodySystem = false;  
6698 6779
6699 if ($rootScope.isHighLight == true) { 6780 if ($rootScope.isHighLight == true) {
6700 6781
@@ -6758,8 +6839,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6758,8 +6839,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6758 $scope.enableNormalMode = function () { 6839 $scope.enableNormalMode = function () {
6759 $("#btnTranparency").removeClass("disabled"); 6840 $("#btnTranparency").removeClass("disabled");
6760 6841
6761 - if ($scope.isTransparencyActivated) {  
6762 - $scope.layerNumber = $scope.currentLayerNumber; 6842 + if ($rootScope.isTransparencyActivated) {
  6843 + $scope.layerNumber = $rootScope.currentLayerNumber;
6763 } 6844 }
6764 else { 6845 else {
6765 $scope.layerNumber = $('#txtlayerNumber').val(); 6846 $scope.layerNumber = $('#txtlayerNumber').val();
@@ -6860,6 +6941,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6860,6 +6941,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6860 6941
6861 $scope.enableExtract = function (isCalledFromButton) { 6942 $scope.enableExtract = function (isCalledFromButton) {
6862 6943
  6944 + $scope.DisableUI();
  6945 +
6863 console.log('isCalledFromButton= ' + isCalledFromButton); 6946 console.log('isCalledFromButton= ' + isCalledFromButton);
6864 6947
6865 //$rootScope.isHighlightBodyByBodySystem = false; 6948 //$rootScope.isHighlightBodyByBodySystem = false;
@@ -6870,7 +6953,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6870,7 +6953,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6870 $rootScope.CanvasDivLeftPosition = $("#canvasDiv").scrollLeft(); 6953 $rootScope.CanvasDivLeftPosition = $("#canvasDiv").scrollLeft();
6871 6954
6872 6955
6873 - if ($scope.isTransparencyActivated == true) { 6956 + if ($rootScope.isTransparencyActivated == true) {
6874 6957
6875 $("#btnExtract").addClass("disabled"); 6958 $("#btnExtract").addClass("disabled");
6876 6959
@@ -6998,7 +7081,17 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -6998,7 +7081,17 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
6998 7081
6999 $scope.highLightBody = function () { 7082 $scope.highLightBody = function () {
7000 7083
7001 - $scope.CloseTransparencyBox(); 7084 + if ($rootScope.isTransparencyActivated && $rootScope.isGlobalSettingChanged) {
  7085 + //do not close Tbox
  7086 + $rootScope.isGlobalSettingChanged = false;
  7087 + }
  7088 + else
  7089 + $scope.CloseTransparencyBox();
  7090 + if ($scope.isTransparencyBtnClicked == true && !$scope.isTransparencyActivated) {
  7091 + $("#btnExtract").addClass("disabled");
  7092 + $('#btnTranparency').addClass('tButtonActive');
  7093 + $('#btnTranparency').removeClass('btn-black');
  7094 + }
7002 $scope.Normal = ""; 7095 $scope.Normal = "";
7003 $scope.Extract = ""; 7096 $scope.Extract = "";
7004 $scope.Highlight = "LeftButtonsDefaultState"; 7097 $scope.Highlight = "LeftButtonsDefaultState";
@@ -7208,6 +7301,10 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7208,6 +7301,10 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7208 else { 7301 else {
7209 $scope.isLoading = false; 7302 $scope.isLoading = false;
7210 $('#spinner').css('visibility', 'hidden'); 7303 $('#spinner').css('visibility', 'hidden');
  7304 +
  7305 + //for highlight when highlight button is clicked the ui got disabled,
  7306 + //now highlight is completed so enalbe UI
  7307 + $scope.EnableUI();
7211 } 7308 }
7212 7309
7213 } 7310 }
@@ -7237,7 +7334,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7237,7 +7334,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7237 else { 7334 else {
7238 $scope.isLoading = false; 7335 $scope.isLoading = false;
7239 $('#spinner').css('visibility', 'hidden'); 7336 $('#spinner').css('visibility', 'hidden');
7240 - 7337 + $scope.EnableUI();
7241 } 7338 }
7242 } 7339 }
7243 } 7340 }
@@ -7376,6 +7473,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7376,6 +7473,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7376 else { 7473 else {
7377 $scope.isLoading = false; 7474 $scope.isLoading = false;
7378 $('#spinner').css('visibility', 'hidden'); 7475 $('#spinner').css('visibility', 'hidden');
  7476 + $scope.EnableUI();
7379 7477
7380 } 7478 }
7381 } 7479 }
@@ -7488,6 +7586,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7488,6 +7586,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7488 7586
7489 $scope.OnGenderChange = function (event) { 7587 $scope.OnGenderChange = function (event) {
7490 7588
  7589 + $scope.DisableUI();
7491 7590
7492 var canvasDiv = document.getElementById('canvasDiv'); 7591 var canvasDiv = document.getElementById('canvasDiv');
7493 $scope.imageVerticalScrollPosition = canvasDiv.scrollTop; 7592 $scope.imageVerticalScrollPosition = canvasDiv.scrollTop;
@@ -7500,7 +7599,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7500,7 +7599,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7500 7599
7501 //close transparecny box 7600 //close transparecny box
7502 $scope.CloseTransparencyBox(); 7601 $scope.CloseTransparencyBox();
7503 - 7602 + if ($scope.isTransparencyBtnClicked == true && !$scope.isTransparencyActivated) {
  7603 + $("#btnExtract").addClass("disabled");
  7604 + $('#btnTranparency').addClass('tButtonActive');
  7605 + $('#btnTranparency').removeClass('btn-black');
  7606 + }
7504 //if listanager is visisble then close it 7607 //if listanager is visisble then close it
7505 7608
7506 // $rootScope.isListManagerSelected = false; 7609 // $rootScope.isListManagerSelected = false;
@@ -7728,9 +7831,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7728,9 +7831,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7728 } 7831 }
7729 7832
7730 $scope.OnViewChange = function (event) { 7833 $scope.OnViewChange = function (event) {
7731 - // alert(event.target.title);  
7732 - // alert($("[title*='" + event.target.title + "']").parent().hasClass("active"));  
7733 - if ($("[title*='" + event.target.title + "']").parent().hasClass("active") == true) { 7834 +
  7835 + $scope.DisableUI();
  7836 +
7734 7837
7735 7838
7736 7839
@@ -7747,7 +7850,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7747,7 +7850,11 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7747 7850
7748 //close transparency box 7851 //close transparency box
7749 $scope.CloseTransparencyBox(); 7852 $scope.CloseTransparencyBox();
7750 - 7853 + if ($scope.isTransparencyBtnClicked == true && !$scope.isTransparencyActivated) {
  7854 + $("#btnExtract").addClass("disabled");
  7855 + $('#btnTranparency').addClass('tButtonActive');
  7856 + $('#btnTranparency').removeClass('btn-black');
  7857 + }
7751 //if listanager is visisble then close it 7858 //if listanager is visisble then close it
7752 7859
7753 //$rootScope.isListManagerSelected = false; 7860 //$rootScope.isListManagerSelected = false;
@@ -7952,13 +8059,19 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -7952,13 +8059,19 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
7952 //Reload DA controller Body View after setting Change 8059 //Reload DA controller Body View after setting Change
7953 $scope.$on('reloadDABodyViewEvent', function (event, data) { 8060 $scope.$on('reloadDABodyViewEvent', function (event, data) {
7954 //console.log('reloadDABodyViewEvent'); 8061 //console.log('reloadDABodyViewEvent');
  8062 + $rootScope.isGlobalSettingChanged = true;
7955 if ($rootScope.isSettingEventAlredayDispachted == true) { 8063 if ($rootScope.isSettingEventAlredayDispachted == true) {
  8064 + $scope.DisableUI();
7956 $rootScope.isSettingEventAlredayDispachted = false; 8065 $rootScope.isSettingEventAlredayDispachted = false;
7957 $scope.layerNumber = parseInt($('#txtlayerNumber').val()); 8066 $scope.layerNumber = parseInt($('#txtlayerNumber').val());
7958 //alert('mouseUp'); 8067 //alert('mouseUp');
7959 8068
  8069 + if ($rootScope.isTransparencyActivated && $rootScope.currentLayerNumber == 0) {
  8070 + $scope.layerNumber = $rootScope.currentLayerNumber;
  8071 + $scope.loadSelectedBodyView(data.reloadDABodyViewId);
7960 8072
7961 - if ($scope.layerNumber == 0) { 8073 + }
  8074 + else if ($scope.layerNumber == 0) {
7962 $scope.loadSelectedBodyView(data.reloadDABodyViewId); 8075 $scope.loadSelectedBodyView(data.reloadDABodyViewId);
7963 } 8076 }
7964 // $scope.loadSelectedBodyView(data.reloadDABodyViewId); 8077 // $scope.loadSelectedBodyView(data.reloadDABodyViewId);
@@ -8089,6 +8202,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -8089,6 +8202,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
8089 8202
8090 $scope.HighlightBodyByBodySystem = function (event) { 8203 $scope.HighlightBodyByBodySystem = function (event) {
8091 8204
  8205 + $scope.DisableUI();
  8206 +
8092 //if listanager is visisble then close it 8207 //if listanager is visisble then close it
8093 8208
8094 $rootScope.isListManagerSelected = false; 8209 $rootScope.isListManagerSelected = false;
@@ -8661,7 +8776,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l @@ -8661,7 +8776,9 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
8661 8776
8662 8777
8663 $scope.HighlightBodyOnListManagerSelection = function (actualTermNumber, isTermListOptionClicked) { 8778 $scope.HighlightBodyOnListManagerSelection = function (actualTermNumber, isTermListOptionClicked) {
8664 - //$rootScope.SelectedTermList = $("#termList").find("option[id=" + actualTermNumber + "]").val(); 8779 +
  8780 + $scope.DisableUI();
  8781 +
8665 $rootScope.searchSelectedText = $("#" + actualTermNumber).text(); 8782 $rootScope.searchSelectedText = $("#" + actualTermNumber).text();
8666 $rootScope.slectedActualTermNumber = actualTermNumber; 8783 $rootScope.slectedActualTermNumber = actualTermNumber;
8667 8784
@@ -9393,6 +9510,10 @@ function OnIdentityClick() { @@ -9393,6 +9510,10 @@ function OnIdentityClick() {
9393 } 9510 }
9394 9511
9395 function OnZoom() { 9512 function OnZoom() {
  9513 + alert('on zoom called');
  9514 + var scope = angular.element(document.getElementById("daView")).scope();
  9515 + scope.DisableUI();
  9516 +
9396 if ($(".btn-annotation").hasClass("activebtncolor")) //Bug #14928 9517 if ($(".btn-annotation").hasClass("activebtncolor")) //Bug #14928
9397 $(".btn-annotation").removeClass("activebtncolor"); 9518 $(".btn-annotation").removeClass("activebtncolor");
9398 //Dissectible Anatomy > Extract and Annotations displays apart on the page after click on Zoom-in. 9519 //Dissectible Anatomy > Extract and Annotations displays apart on the page after click on Zoom-in.
@@ -9403,6 +9524,8 @@ function OnZoom() { @@ -9403,6 +9524,8 @@ function OnZoom() {
9403 scope.$apply(function () { 9524 scope.$apply(function () {
9404 scope.enableZoom(); 9525 scope.enableZoom();
9405 }); 9526 });
  9527 +
  9528 +
9406 } 9529 }
9407 9530
9408 function onListManagerTermSelection(id, isTermListOptionClicked) { 9531 function onListManagerTermSelection(id, isTermListOptionClicked) {
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -220,7 +220,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -220,7 +220,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
220 } 220 }
221 else { 221 else {
222 222
223 - if (result.UserType == UserTypeConstants.SUPER_ADMIN && result.IsActive) { //(!result.IsSubscriptionExpired) && 223 + //if (result.UserType == UserTypeConstants.SUPER_ADMIN && result.IsActive) { //(!result.IsSubscriptionExpired) &&
  224 + if (result.LicenseId == 0 && result.IsActive) {
224 $rootScope.userData = result; 225 $rootScope.userData = result;
225 $rootScope.userModules = result.Modules; 226 $rootScope.userModules = result.Modules;
226 $rootScope.isVisibleLogin = false; 227 $rootScope.isVisibleLogin = false;
@@ -377,7 +378,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -377,7 +378,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
377 $rootScope.userModules = userInfo.Modules; 378 $rootScope.userModules = userInfo.Modules;
378 379
379 $rootScope.isVisibleLogin = false; 380 $rootScope.isVisibleLogin = false;
380 - 381 + $rootScope.haveRoleAdmin = true;
381 382
382 if ($rootScope.refreshcheck == null) { 383 if ($rootScope.refreshcheck == null) {
383 384
@@ -388,6 +389,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -388,6 +389,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
388 389
389 else 390 else
390 { 391 {
  392 + $rootScope.haveRoleAdmin = false;
  393 +
391 if (userInfo.LicenseInfo.IsTermAccepted) { 394 if (userInfo.LicenseInfo.IsTermAccepted) {
392 $rootScope.userData = userInfo; 395 $rootScope.userData = userInfo;
393 $rootScope.userModules = userInfo.Modules; 396 $rootScope.userModules = userInfo.Modules;
@@ -995,8 +998,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -995,8 +998,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
995 // alert($rootScope.AnnotationFontFamily.FontStyle.length); 998 // alert($rootScope.AnnotationFontFamily.FontStyle.length);
996 999
997 for (var i = 0; i <= $rootScope.AnnotationFontFamily.FontFamily.length - 1; i++) { 1000 for (var i = 0; i <= $rootScope.AnnotationFontFamily.FontFamily.length - 1; i++) {
998 -  
999 - $("#selected-font-family").append("<option value=" + $rootScope.AnnotationFontFamily.FontFamily[i].FontName + ">" + $rootScope.AnnotationFontFamily.FontFamily[i].FontName + "</option>"); 1001 + var fontName = $rootScope.AnnotationFontFamily.FontFamily[i].FontName;
  1002 + if (/\s/g.test(fontName)) { //Check if white-space exists in between strings
  1003 + fontName = fontName.replace(" ", "_"); // replace white-space with an underscore
  1004 + }
  1005 + //$rootScope.AnnotationFontFamily.FontFamily[i].FontName
  1006 + $("#selected-font-family").append("<option value=" + fontName + ">" + $rootScope.AnnotationFontFamily.FontFamily[i].FontName + "</option>");
1000 1007
1001 } 1008 }
1002 $rootScope.isFontFamilyLoaded = true; 1009 $rootScope.isFontFamilyLoaded = true;
@@ -3039,7 +3046,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3039,7 +3046,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3039 $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": $rootScope.TextPropertyArray[i].FontColor }); 3046 $("#font-color .minicolors .minicolors-swatch .minicolors-swatch-color").css({ "background-color": $rootScope.TextPropertyArray[i].FontColor });
3040 3047
3041 var CurrentFontFamily = $rootScope.TextPropertyArray[i].FontFamily; 3048 var CurrentFontFamily = $rootScope.TextPropertyArray[i].FontFamily;
3042 - // alert(CurrentFontFamily); 3049 + // alert(CurrentFontFamily);
3043 // CurrentFontFamily = CurrentFontFamily.replace(/'/g, ""); 3050 // CurrentFontFamily = CurrentFontFamily.replace(/'/g, "");
3044 var CurrentFontSize = parseInt($rootScope.TextPropertyArray[i].FontSize); 3051 var CurrentFontSize = parseInt($rootScope.TextPropertyArray[i].FontSize);
3045 $("#selected-font-family option[value=" + CurrentFontFamily + "]").prop('selected', true); 3052 $("#selected-font-family option[value=" + CurrentFontFamily + "]").prop('selected', true);
@@ -3666,6 +3673,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -3666,6 +3673,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
3666 $rootScope.closeModal = function () { 3673 $rootScope.closeModal = function () {
3667 3674
3668 document.getElementById('modelbackground').style.display = "none"; 3675 document.getElementById('modelbackground').style.display = "none";
  3676 + $("#drawTextBGColorpicker span.minicolors-swatch-color").css('background-color', $rootScope.selectedBGColorForTextArea);
3669 3677
3670 } 3678 }
3671 //-- End ---------------------------- 3679 //-- End ----------------------------
@@ -4172,6 +4180,16 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -4172,6 +4180,16 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4172 $('.modestyImg').css('visibility', 'hidden'); 4180 $('.modestyImg').css('visibility', 'hidden');
4173 } 4181 }
4174 } 4182 }
  4183 +
  4184 + if ($('.transModestyImg') != null) {
  4185 + if (($rootScope.globalSetting.modesty == 'Y')) {
  4186 + $('.transModestyImg').css('visibility', 'visible');
  4187 + }
  4188 +
  4189 + else {
  4190 + $('.transModestyImg').css('visibility', 'hidden');
  4191 + }
  4192 + }
4175 $rootScope.changeNavigatorModesty(); 4193 $rootScope.changeNavigatorModesty();
4176 } 4194 }
4177 4195
@@ -4310,6 +4328,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -4310,6 +4328,9 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4310 } 4328 }
4311 if ($location.url() == "/module-item-view") { 4329 if ($location.url() == "/module-item-view") {
4312 $("#aaDetailViewCanvas").css("display", "none"); 4330 $("#aaDetailViewCanvas").css("display", "none");
  4331 + $("#canvasPaint").css("display", "none");
  4332 + $("#canvas").css("display", "none");
  4333 +
4313 } 4334 }
4314 }, 520); 4335 }, 520);
4315 } 4336 }
@@ -4327,6 +4348,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -4327,6 +4348,8 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4327 } 4348 }
4328 if ($location.url() == "/module-item-view") { 4349 if ($location.url() == "/module-item-view") {
4329 $("#aaDetailViewCanvas").css("display", "none"); 4350 $("#aaDetailViewCanvas").css("display", "none");
  4351 + $("#canvasPaint").css("display", "none");
  4352 + $("#canvas").css("display", "none");
4330 } 4353 }
4331 }, 320); 4354 }, 320);
4332 } 4355 }
@@ -4353,6 +4376,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -4353,6 +4376,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4353 function OpenJSPanel() { 4376 function OpenJSPanel() {
4354 $("#daImagePanel").css({ "pointer-events": "none", "opacity": ".5" }); 4377 $("#daImagePanel").css({ "pointer-events": "none", "opacity": ".5" });
4355 $("#ciImagePanel").css({ "pointer-events": "none", "opacity": ".5" }); 4378 $("#ciImagePanel").css({ "pointer-events": "none", "opacity": ".5" });
  4379 + $("#ImagePanel").css({ "pointer-events": "none", "opacity": ".5" });
4356 $.jsPanel({ 4380 $.jsPanel({
4357 id: 'jsPanel-1', 4381 id: 'jsPanel-1',
4358 selector: '#dvPrintPreview', 4382 selector: '#dvPrintPreview',
@@ -4403,34 +4427,34 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -4403,34 +4427,34 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4403 $(document).on('change', '#printPSOptions', function () { 4427 $(document).on('change', '#printPSOptions', function () {
4404 var option = $('#printPSOptions').find(":selected").text(); 4428 var option = $('#printPSOptions').find(":selected").text();
4405 switch (option) { 4429 switch (option) {
4406 - case (option = "10%"): 4430 + case ("10%"):
4407 ResizeImage(0.1); 4431 ResizeImage(0.1);
4408 break; 4432 break;
4409 - case (option = "25%"): 4433 + case ("25%"):
4410 ResizeImage(0.25); 4434 ResizeImage(0.25);
4411 break; 4435 break;
4412 - case (option = "50%"): 4436 + case ("50%"):
4413 ResizeImage(0.5); 4437 ResizeImage(0.5);
4414 break; 4438 break;
4415 - case (option = "75%"): 4439 + case ("75%"):
4416 ResizeImage(.75); 4440 ResizeImage(.75);
4417 break; 4441 break;
4418 - case (option = "65%"): 4442 + case ("65%"):
4419 ResizeImage(0.65); 4443 ResizeImage(0.65);
4420 break; 4444 break;
4421 - case (option = "100%"): 4445 + case ("100%"):
4422 ResizeImage(1); 4446 ResizeImage(1);
4423 break; 4447 break;
4424 - case (option = "150%"): 4448 + case ("150%"):
4425 ResizeImage(1.5); 4449 ResizeImage(1.5);
4426 break; 4450 break;
4427 - case (option = "200%"): 4451 + case ("200%"):
4428 ResizeImage(2); 4452 ResizeImage(2);
4429 break; 4453 break;
4430 - case (option = "500%"): 4454 + case ("500%"):
4431 ResizeImage(5); 4455 ResizeImage(5);
4432 break; 4456 break;
4433 - case (option = "Auto"): 4457 + case ("Auto"):
4434 ResizeImage(0); 4458 ResizeImage(0);
4435 break; 4459 break;
4436 default: 4460 default:
@@ -4480,11 +4504,16 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic @@ -4480,11 +4504,16 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
4480 $(document).on('click', '#jsPanel-1 .jsglyph-remove', function () { 4504 $(document).on('click', '#jsPanel-1 .jsglyph-remove', function () {
4481 $("#daImagePanel").css({ "pointer-events": "auto", "opacity": "1" }); 4505 $("#daImagePanel").css({ "pointer-events": "auto", "opacity": "1" });
4482 $("#ciImagePanel").css({ "pointer-events": "auto", "opacity": "1" }); 4506 $("#ciImagePanel").css({ "pointer-events": "auto", "opacity": "1" });
  4507 + $("#ImagePanel").css({ "pointer-events": "auto", "opacity": "1" });
4483 $("#annotationButton").parent().removeClass("disableMenuannotation"); 4508 $("#annotationButton").parent().removeClass("disableMenuannotation");
4484 $("#annotationToolBarOptions").removeClass("disableMenuoption"); 4509 $("#annotationToolBarOptions").removeClass("disableMenuoption");
4485 $("#optionsListManagerTab").removeClass("disableMenuoption"); 4510 $("#optionsListManagerTab").removeClass("disableMenuoption");
4486 $('#fileMenuAnchor').parent().removeClass('disableFileMenu'); 4511 $('#fileMenuAnchor').parent().removeClass('disableFileMenu');
4487 - $("#aaDetailViewCanvas").css("display", "block"); 4512 + if ($location.url() == "/module-item-view") {
  4513 + $("#aaDetailViewCanvas").css("display", "block");
  4514 + $("#canvasPaint").css("display", "block");
  4515 + $("#canvas").css("display", "block");
  4516 + }
4488 if ($('#jsPanel-1').length > 0) 4517 if ($('#jsPanel-1').length > 0)
4489 $('#jsPanel-1').remove(); 4518 $('#jsPanel-1').remove();
4490 console.log('close'); 4519 console.log('close');
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -324,7 +324,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -324,7 +324,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
324 }) 324 })
325 $rootScope.aaPinDataArray = []; 325 $rootScope.aaPinDataArray = [];
326 $scope.showAllPins = function () { 326 $scope.showAllPins = function () {
327 - 327 +
328 $scope.allPinDataArray = []; 328 $scope.allPinDataArray = [];
329 var promise = ModuleService.getPinDataForImage($rootScope.imageName) 329 var promise = ModuleService.getPinDataForImage($rootScope.imageName)
330 330
@@ -576,7 +576,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -576,7 +576,6 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
576 } 576 }
577 577
578 $scope.showSelectedSystemPins = function (event) { 578 $scope.showSelectedSystemPins = function (event) {
579 -  
580 var bodySystemListObj = document.getElementById("bodySystemList").getElementsByTagName("a"); 579 var bodySystemListObj = document.getElementById("bodySystemList").getElementsByTagName("a");
581 var bodySystemListlength = bodySystemListObj.length; 580 var bodySystemListlength = bodySystemListObj.length;
582 for (var i = 0; i < bodySystemListlength; i++) { 581 for (var i = 0; i < bodySystemListlength; i++) {
@@ -655,7 +654,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -655,7 +654,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
655 } 654 }
656 655
657 $scope.showAnnotation = function (selectedPinData, isCtrlPressed, isPinClicked, isItemSearched) { 656 $scope.showAnnotation = function (selectedPinData, isCtrlPressed, isPinClicked, isItemSearched) {
658 - 657 + $scope.clickedPins = [];
659 $scope.selectedPin = []; 658 $scope.selectedPin = [];
660 var isSameTermWithMultiPin = false; 659 var isSameTermWithMultiPin = false;
661 var firstPinId = selectedPinData[0]._PinId; 660 var firstPinId = selectedPinData[0]._PinId;
@@ -713,13 +712,12 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -713,13 +712,12 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
713 712
714 angular.forEach(pinDataWithFirstTermNumber, function (value, key) { 713 angular.forEach(pinDataWithFirstTermNumber, function (value, key) {
715 $scope.selectedPin.push(value._PinId); 714 $scope.selectedPin.push(value._PinId);
  715 + $scope.clickedPins.push({ 'id': value._PinId });
716 var headX = (parseInt(value._HeadX)); 716 var headX = (parseInt(value._HeadX));
717 var headY = (parseInt(value._HeadY)); 717 var headY = (parseInt(value._HeadY));
718 $scope.createSpeechBubble(parseInt(headX) + 10, parseInt(headY) + 10, value._PinId, isCtrlPressed, isPinClicked, isSameTermWithMultiPin); 718 $scope.createSpeechBubble(parseInt(headX) + 10, parseInt(headY) + 10, value._PinId, isCtrlPressed, isPinClicked, isSameTermWithMultiPin);
719 }) 719 })
720 -  
721 -  
722 - 720 +
723 } 721 }
724 722
725 $rootScope.isLoading = false; 723 $rootScope.isLoading = false;
@@ -1360,7 +1358,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1360,7 +1358,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1360 } 1358 }
1361 1359
1362 $rootScope.hidePins = function () { 1360 $rootScope.hidePins = function () {
1363 - 1361 + $("#dropdownMenu221").addClass("aaSystemDisable");
1364 $rootScope.isLoading = true; 1362 $rootScope.isLoading = true;
1365 $('#spinner').css('visibility', 'visible'); 1363 $('#spinner').css('visibility', 'visible');
1366 $scope.hideSpeechBubble(); 1364 $scope.hideSpeechBubble();
@@ -1389,10 +1387,13 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1389,10 +1387,13 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1389 } 1387 }
1390 1388
1391 $scope.showAllPinsAfterHide = function (event) { 1389 $scope.showAllPinsAfterHide = function (event) {
  1390 + if ($("#dropdownMenu221").hasClass("aaSystemDisable")) {
  1391 + $("#dropdownMenu221").removeClass("aaSystemDisable");
  1392 + }
1392 $rootScope.isLoading = true; 1393 $rootScope.isLoading = true;
1393 $('#spinner').css('visibility', 'visible'); 1394 $('#spinner').css('visibility', 'visible');
1394 $scope.isHidePinBtnClicked = false; 1395 $scope.isHidePinBtnClicked = false;
1395 - 1396 + $rootScope.isshowAllPinsBtnAfterHideClicked = true;
1396 if ($scope.selectedSystemName != null && $scope.selectedSystemName != undefined) { 1397 if ($scope.selectedSystemName != null && $scope.selectedSystemName != undefined) {
1397 1398
1398 $scope.showSystemPins($scope.selectedSystemPinData, false); 1399 $scope.showSystemPins($scope.selectedSystemPinData, false);
@@ -1415,6 +1416,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1415,6 +1416,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1415 1416
1416 1417
1417 $scope.showSelectedPins = function () { 1418 $scope.showSelectedPins = function () {
  1419 + if ($("#dropdownMenu221").hasClass("aaSystemDisable")) {
  1420 + $("#dropdownMenu221").removeClass("aaSystemDisable");
  1421 + }
1418 $rootScope.isLoading = true; 1422 $rootScope.isLoading = true;
1419 $('#spinner').css('visibility', 'visible'); 1423 $('#spinner').css('visibility', 'visible');
1420 1424
@@ -1518,8 +1522,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1518,8 +1522,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1518 1522
1519 1523
1520 } 1524 }
1521 - 1525 + $rootScope.isshowAllPinsBtnAfterHideClicked = true;
1522 $scope.showItemsForSearch = function () { 1526 $scope.showItemsForSearch = function () {
  1527 + if($rootScope.isshowAllPinsBtnAfterHideClicked == true){
1523 console.log('showItemsForSearch is called'); 1528 console.log('showItemsForSearch is called');
1524 //this check is for log only because we are writing length so need to check if its not null or undefined 1529 //this check is for log only because we are writing length so need to check if its not null or undefined
1525 1530
@@ -1547,7 +1552,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1547,7 +1552,7 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1547 } 1552 }
1548 1553
1549 }, 500); 1554 }, 500);
1550 - 1555 + }
1551 } 1556 }
1552 1557
1553 1558
@@ -1574,8 +1579,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou @@ -1574,8 +1579,9 @@ function ($scope, $window, $rootScope, $compile, $http, $log, $location, $timeou
1574 $("#termlistfilter li a").css({ "background-color": "#ffffff", "color": "#000000" }); 1579 $("#termlistfilter li a").css({ "background-color": "#ffffff", "color": "#000000" });
1575 $("#termlistfilter li #" + $scope.searchItemId).css({ "background-color": "#3399FF", "color": "#ffffff" }); 1580 $("#termlistfilter li #" + $scope.searchItemId).css({ "background-color": "#3399FF", "color": "#ffffff" });
1576 $scope.searchFilter = $("#" + id).text(); 1581 $scope.searchFilter = $("#" + id).text();
1577 - selectedTermName.placeholder = $("#" + id).text();  
1578 - 1582 + //selectedTermName.placeholder = $("#" + id).text();
  1583 + selectedTermName.value = $("#" + id).text();
  1584 + selectedTermName.placeholder = "search... ";
1579 1585
1580 //get data from pindata for this trem 1586 //get data from pindata for this trem
1581 1587
400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js
@@ -498,7 +498,7 @@ AIA.constant(&quot;UserModules&quot;, [ @@ -498,7 +498,7 @@ AIA.constant(&quot;UserModules&quot;, [
498 ]); 498 ]);
499 AIA.constant("AIAConstants", { 499 AIA.constant("AIAConstants", {
500 500
501 - "NO_BODY_SYSTEM_AVAILABLE": "No body system available in this layer.", 501 + "NO_BODY_SYSTEM_AVAILABLE": "Selected body system is not available on this layer.",
502 }) 502 })
503 AIA.config(function ($routeProvider, pages, $locationProvider) { 503 AIA.config(function ($routeProvider, pages, $locationProvider) {
504 504
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" ng-disabled="module.id==7|| module.id==8 || module.id==10"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible();getModuleScrollPosition()" data-ng-bind="module.name" ng-class="HightLightModuleSelection('{{module.slug}}')" ng-disabled="module.id==7|| module.id==8 || module.id==10"><!--{{module.name}}--></a></li> 29 + <li ng-repeat="module in userModules" ng-disabled="module.id==7|| module.id==8 || module.id==10 || module.id==13"><a id="{{module.slug}}" href="{{module.slug}}" ng-click="IsVisible();getModuleScrollPosition()" data-ng-bind="module.name" ng-class="HightLightModuleSelection('{{module.slug}}')" ng-disabled="module.id==7|| module.id==8 || module.id==10 || module.id==13"><!--{{module.name}}--></a></li>
30 </ul> 30 </ul>
31 </div> 31 </div>
32 32
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -317,7 +317,7 @@ @@ -317,7 +317,7 @@
317 </div>> 317 </div>>
318 318
319 319
320 - <!--list manager Modal--> 320 +
321 <div class="modal fade" id="ShowListManager" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" ng-init="tab = 1" style="width:27%;left:50%;overflow:hidden;height:500px;top:100px"> 321 <div class="modal fade" id="ShowListManager" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" ng-init="tab = 1" style="width:27%;left:50%;overflow:hidden;height:500px;top:100px">
322 <div class="modal-dialog" role="document" style="width:400px;"> 322 <div class="modal-dialog" role="document" style="width:400px;">
323 <div class="modal-content" style="width:100%;max-width:400px;"> 323 <div class="modal-content" style="width:100%;max-width:400px;">
@@ -1272,9 +1272,7 @@ @@ -1272,9 +1272,7 @@
1272 <div class="form-group" id="moduleDiv12"> 1272 <div class="form-group" id="moduleDiv12">
1273 <div class="col-sm-8">• Complementary and Alternative Medicine</div> 1273 <div class="col-sm-8">• Complementary and Alternative Medicine</div>
1274 </div> 1274 </div>
1275 - <div class="form-group" id="moduleDiv13">  
1276 - <div class="col-sm-8">• A.D.A.M Images</div>  
1277 - </div> 1275 +
1278 <div class="form-group" id="moduleDiv14"> 1276 <div class="form-group" id="moduleDiv14">
1279 <div class="col-sm-8">• Body Guide</div> 1277 <div class="col-sm-8">• Body Guide</div>
1280 </div> 1278 </div>
@@ -1301,6 +1299,9 @@ @@ -1301,6 +1299,9 @@
1301 <div class="form-group" id="moduleDiv10"> 1299 <div class="form-group" id="moduleDiv10">
1302 <div class="col-sm-8"><i>• Lab Exercises</i></div> <!--(To be available by 08/16/2017)--> 1300 <div class="col-sm-8"><i>• Lab Exercises</i></div> <!--(To be available by 08/16/2017)-->
1303 </div> 1301 </div>
  1302 + <div class="form-group" id="moduleDiv13">
  1303 + <div class="col-sm-8">• A.D.A.M Images</div>
  1304 + </div>
1304 </div> 1305 </div>
1305 <div class="form-group"> 1306 <div class="form-group">
1306 <div style="text-align: center"> 1307 <div style="text-align: center">
400-SOURCECODE/AIAHTML5.Web/themes/default/css/bootstrap/3.3.6/main.css
@@ -986,7 +986,10 @@ background-size:cover; @@ -986,7 +986,10 @@ background-size:cover;
986 { 986 {
987 color: #fff; 987 color: #fff;
988 } 988 }
989 - 989 + #messageModal
  990 + {
  991 + z-index: 214748;
  992 + }
990 #messageModal .modal-dialog 993 #messageModal .modal-dialog
991 { 994 {
992 width:300px 995 width:300px
@@ -999,7 +1002,8 @@ background-size:cover; @@ -999,7 +1002,8 @@ background-size:cover;
999 } 1002 }
1000 #messageModal .modal-body 1003 #messageModal .modal-body
1001 { 1004 {
1002 - text-align:center; 1005 + text-align: justify;
  1006 + text-align-last: center;
1003 } 1007 }
1004 #messageModal .modal-header 1008 #messageModal .modal-header
1005 { 1009 {
@@ -1100,4 +1104,11 @@ li[disabled], a[disabled] { @@ -1100,4 +1104,11 @@ li[disabled], a[disabled] {
1100 } 1104 }
1101 a[disabled] { 1105 a[disabled] {
1102 color: #aaa !important; 1106 color: #aaa !important;
1103 -}  
1104 \ No newline at end of file 1107 \ No newline at end of file
  1108 +}
  1109 +
  1110 +
  1111 +.aaSystemDisable
  1112 + {
  1113 + pointer-events : none;
  1114 + opacity : 0.5;
  1115 +}