Commit ff0cf3305fe55064b65d6c8ae23f09d557ef9847

Authored by Nikita Kulshreshtha
1 parent ccdbc109

enabling when tbox is not on body

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,10 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4596 4600 }
4597 4601  
4598 4602 }
  4603 + else {
  4604 + //when user draw TB outside body
  4605 + $scope.EnableUI();
  4606 + }
4599 4607 })
4600 4608  
4601 4609 //for modesty
... ... @@ -5374,7 +5382,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
5374 5382  
5375 5383  
5376 5384 }
5377   -
  5385 + //debugger;
5378 5386 $scope.EnableUI();
5379 5387 }
5380 5388  
... ... @@ -7312,7 +7320,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
7312 7320  
7313 7321 //for highlight when highlight button is clicked the ui got disabled,
7314 7322 //now highlight is completed so enalbe UI
  7323 + //debugger;
7315 7324 $scope.EnableUI();
  7325 +
7316 7326 }
7317 7327  
7318 7328 }
... ... @@ -7342,6 +7352,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
7342 7352 else {
7343 7353 $scope.isLoading = false;
7344 7354 $('#spinner').css('visibility', 'hidden');
  7355 + //debugger;
7345 7356 $scope.EnableUI();
7346 7357 }
7347 7358 }
... ... @@ -7481,6 +7492,7 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
7481 7492 else {
7482 7493 $scope.isLoading = false;
7483 7494 $('#spinner').css('visibility', 'hidden');
  7495 + //debugger;
7484 7496 $scope.EnableUI();
7485 7497  
7486 7498 }
... ...