Commit c81a82e565f4829136aed611230dfb2dc780a7a2

Authored by Amrita Vishnoi
2 parents 1864a8a5 11e4531a

Merge branch 'Develop' into QA

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -1451,6 +1451,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
1451 1451  
1452 1452 $scope.DrawMirroredImage = function (h, w, x, y, src, bodyRegionId, isMaskImage) {
1453 1453  
  1454 + $scope.DisableUI();
1454 1455 $rootScope.isLoading = true;
1455 1456 $('#spinner').css('visibility', 'visible');
1456 1457  
... ... @@ -1787,7 +1788,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
1787 1788 //
1788 1789  
1789 1790 // console.log('$rootScope.isListManagerSelected= ' + $rootScope.isListManagerSelected + ' length= ' + $scope.ColoredImageSRC.length)
1790   -
  1791 +
1791 1792 if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) {
1792 1793  
1793 1794 if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.ColoredImageSRC.length == 9)) {
... ... @@ -1805,9 +1806,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
1805 1806 else {
1806 1807 $scope.isEligibleForHighlight = false;
1807 1808 }
1808   -
  1809 +
1809 1810 if ($scope.isEligibleForHighlight == true) {
1810   -
  1811 + $scope.DisableUI();
1811 1812 if ($scope.isSearchDataLoaded) {
1812 1813 $rootScope.isLoading = false;
1813 1814 $('#spinner').css('visibility', 'hidden');
... ... @@ -1834,6 +1835,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
1834 1835 else {
1835 1836 $rootScope.isLoading = false;
1836 1837 $('#spinner').css('visibility', 'hidden');
  1838 + //debugger;
1837 1839 $scope.EnableUI();
1838 1840 }
1839 1841 }
... ... @@ -1867,7 +1869,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
1867 1869 }
1868 1870  
1869 1871 $scope.DrawImage = function (h, w, x, y, src, bodyRegionId, isMaskImage) {
1870   -
  1872 + $scope.DisableUI();
1871 1873 $rootScope.isLoading = true;
1872 1874 $('#spinner').css('visibility', 'visible');
1873 1875  
... ... @@ -2209,7 +2211,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
2209 2211 }
2210 2212 //
2211 2213  
2212   -
  2214 +
2213 2215 if (($scope.ColoredImageSRC != null || $scope.ColoredImageSRC != undefined)) {
2214 2216  
2215 2217 if ((($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) && ($scope.ColoredImageSRC.length == 9)) {
... ... @@ -2228,9 +2230,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
2228 2230 $scope.isEligibleForHighlight = false;
2229 2231 }
2230 2232  
2231   -
2232 2233 if ($scope.isEligibleForHighlight == true) {
2233   -
  2234 + $scope.DisableUI();
2234 2235 if ($scope.isSearchDataLoaded) {
2235 2236 $rootScope.isLoading = false;
2236 2237 $('#spinner').css('visibility', 'hidden');
... ... @@ -2263,12 +2264,14 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
2263 2264 else {
2264 2265 $rootScope.isLoading = false;
2265 2266 $('#spinner').css('visibility', 'hidden');
  2267 + //debugger;
2266 2268 $scope.EnableUI();
2267 2269 }
2268 2270 }
2269 2271 else {
2270 2272 $rootScope.isLoading = false;
2271 2273 $('#spinner').css('visibility', 'hidden');
  2274 + //debugger;
2272 2275 $scope.EnableUI();
2273 2276 }
2274 2277 }
... ... @@ -2560,7 +2563,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
2560 2563  
2561 2564 if ($scope.doAligneCanvasWithTerm == true) {
2562 2565 $scope.aligneCanvasWithTerm();
2563   -
  2566 + //debugger;
2564 2567 $scope.EnableUI();
2565 2568 }
2566 2569  
... ... @@ -2848,7 +2851,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
2848 2851 $rootScope.isLoading = false;
2849 2852  
2850 2853 $('#spinner').css('visibility', 'hidden');
2851   -
  2854 + //debugger;
2852 2855 $scope.EnableUI();
2853 2856  
2854 2857 }
... ... @@ -2929,7 +2932,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
2929 2932  
2930 2933 $scope.message = AIAConstants.NO_BODY_SYSTEM_AVAILABLE;
2931 2934 $("#daMessageModal").modal('show');
2932   -
  2935 + //debugger;
2933 2936 $scope.EnableUI();
2934 2937  
2935 2938 $('.ui-slider').slider('enable');
... ... @@ -3127,6 +3130,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
3127 3130 $rootScope.isLoading = false;
3128 3131  
3129 3132 //document.getElementById("daView").style.pointerEvents = "auto";
  3133 + //debugger;
3130 3134 //$('.ui-slider').slider('enable');
3131 3135 $scope.EnableUI();
3132 3136 prevBRID = TermExistInBodyRegionId;
... ... @@ -3139,7 +3143,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
3139 3143 else {
3140 3144 $('#spinner').css('visibility', 'hidden')
3141 3145 $rootScope.isLoading = false;
3142   -
  3146 + //debugger;
3143 3147 $scope.EnableUI();
3144 3148 $('.ui-slider').slider('enable');
3145 3149 }
... ... @@ -4596,6 +4600,11 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4596 4600 }
4597 4601  
4598 4602 }
  4603 + else {
  4604 + //when user draw TB outside body than no bodyRegion
  4605 + //is covred and nothing is drawn so the function is not called in which we are enabling UI
  4606 + $scope.EnableUI();
  4607 + }
4599 4608 })
4600 4609  
4601 4610 //for modesty
... ... @@ -5374,7 +5383,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
5374 5383  
5375 5384  
5376 5385 }
5377   -
  5386 + //debugger;
5378 5387 $scope.EnableUI();
5379 5388 }
5380 5389  
... ... @@ -7312,7 +7321,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
7312 7321  
7313 7322 //for highlight when highlight button is clicked the ui got disabled,
7314 7323 //now highlight is completed so enalbe UI
  7324 + //debugger;
7315 7325 $scope.EnableUI();
  7326 +
7316 7327 }
7317 7328  
7318 7329 }
... ... @@ -7342,6 +7353,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
7342 7353 else {
7343 7354 $scope.isLoading = false;
7344 7355 $('#spinner').css('visibility', 'hidden');
  7356 + //debugger;
7345 7357 $scope.EnableUI();
7346 7358 }
7347 7359 }
... ... @@ -7481,6 +7493,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
7481 7493 else {
7482 7494 $scope.isLoading = false;
7483 7495 $('#spinner').css('visibility', 'hidden');
  7496 + //debugger;
7484 7497 $scope.EnableUI();
7485 7498  
7486 7499 }
... ...