Commit 1c3279292f8d289fa68b41774d96d390b0ae4907

Authored by Nikita Kulshreshtha
1 parent 51b63df6

removed commented code

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -4729,7 +4729,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4729,7 +4729,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4729 var tranparencyImgSrc; 4729 var tranparencyImgSrc;
4730 var tranparencyMaskImgSrc; 4730 var tranparencyMaskImgSrc;
4731 4731
4732 - //if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4733 if ((bodyRegionId.match('modestyImg'))) { 4732 if ((bodyRegionId.match('modestyImg'))) {
4734 var modestyBodyRegionData = new jinqJs() 4733 var modestyBodyRegionData = new jinqJs()
4735 .from($scope.modestyImageInfo) 4734 .from($scope.modestyImageInfo)
@@ -4780,7 +4779,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4780,7 +4779,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4780 transparencyTempcanavsMask.id = 'transparencyTempCanvasMask_MR' + bodyRegionId + '_mci'; 4779 transparencyTempcanavsMask.id = 'transparencyTempCanvasMask_MR' + bodyRegionId + '_mci';
4781 } 4780 }
4782 else { 4781 else {
4783 - //if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4784 if ((bodyRegionId.match('modestyImg'))) { 4782 if ((bodyRegionId.match('modestyImg'))) {
4785 4783
4786 transparencyTempCanvas.id = 'transparencyTempCanvas_' + bodyRegionId; 4784 transparencyTempCanvas.id = 'transparencyTempCanvas_' + bodyRegionId;
@@ -4803,7 +4801,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4803,7 +4801,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4803 document.getElementById('canvasDiv').appendChild(transparencyTempCanvas); 4801 document.getElementById('canvasDiv').appendChild(transparencyTempCanvas);
4804 4802
4805 //create temp mask canvas 4803 //create temp mask canvas
4806 - //if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) { }  
4807 if ((bodyRegionId.match('modestyImg'))) { } 4804 if ((bodyRegionId.match('modestyImg'))) { }
4808 4805
4809 else { 4806 else {
@@ -4818,7 +4815,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4818,7 +4815,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4818 } 4815 }
4819 4816
4820 //for modesty canvas 4817 //for modesty canvas
4821 - //if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4822 if ((bodyRegionId.match('modestyImg'))) { 4818 if ((bodyRegionId.match('modestyImg'))) {
4823 4819
4824 var modestyTransTempCanvasId = 'tempCanvasModesty_' + bodyRegionId; 4820 var modestyTransTempCanvasId = 'tempCanvasModesty_' + bodyRegionId;
@@ -4882,7 +4878,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4882,7 +4878,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4882 tempCanvasID = 'transparencyTempCanvas_MR_' + bodyRegionId; 4878 tempCanvasID = 'transparencyTempCanvas_MR_' + bodyRegionId;
4883 } 4879 }
4884 else { 4880 else {
4885 - //if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4886 if ((bodyRegionId.match('modestyImg'))) { 4881 if ((bodyRegionId.match('modestyImg'))) {
4887 4882
4888 tempCanvasID = 'transparencyTempCanvas_' + bodyRegionId;//bodyRegionId; 4883 tempCanvasID = 'transparencyTempCanvas_' + bodyRegionId;//bodyRegionId;
@@ -4925,7 +4920,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4925,7 +4920,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4925 if ($rootScope.isHighLight != true) { 4920 if ($rootScope.isHighLight != true) {
4926 4921
4927 4922
4928 - // if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
4929 if ((bodyRegionId.match('modestyImg'))) { 4923 if ((bodyRegionId.match('modestyImg'))) {
4930 4924
4931 var modestyTempCanvasId = 'tempCanvasModesty_' + bodyRegionId; 4925 var modestyTempCanvasId = 'tempCanvasModesty_' + bodyRegionId;
@@ -4982,7 +4976,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -4982,7 +4976,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
4982 } 4976 }
4983 4977
4984 //set modesty image visiblility true/false as per layer 4978 //set modesty image visiblility true/false as per layer
4985 - // if(bodyRegionId.match('modestyImg3'))  
4986 var BRID = ''; 4979 var BRID = '';
4987 if (bodyRegionId.match('modestyImg') && document.getElementById('modestyTransCanavs_' + bodyRegionId) != null) { 4980 if (bodyRegionId.match('modestyImg') && document.getElementById('modestyTransCanavs_' + bodyRegionId) != null) {
4988 BRID = bodyRegionId[bodyRegionId.length - 1]; 4981 BRID = bodyRegionId[bodyRegionId.length - 1];
@@ -5267,7 +5260,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -5267,7 +5260,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
5267 5260
5268 5261
5269 var ctx; 5262 var ctx;
5270 - //if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
5271 if ((bodyRegionId.match('modestyImg'))) { 5263 if ((bodyRegionId.match('modestyImg'))) {
5272 5264
5273 var modestyTransCanvasId = 'modestyTransCanavs_' + bodyRegionId 5265 var modestyTransCanvasId = 'modestyTransCanavs_' + bodyRegionId
@@ -5280,7 +5272,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l @@ -5280,7 +5272,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
5280 ctx.drawImage(tmpCanvasContext, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage) 5272 ctx.drawImage(tmpCanvasContext, XforCopyImage, YforCopyImage, WidthforCopyImage, HeightforCopyImage, XforTransImage, YforTransImage, WidthforTransImage, HeightforTransImage)
5281 5273
5282 5274
5283 - // if ($rootScope.isModestyOn == true && (bodyRegionId.match('modestyImg'))) {  
5284 if ((bodyRegionId.match('modestyImg'))) { 5275 if ((bodyRegionId.match('modestyImg'))) {
5285 5276
5286 var imageD1 = ctx.getImageData(0, 0, Width, Height); 5277 var imageD1 = ctx.getImageData(0, 0, Width, Height);