From f9cc28e61bcc4d4f28576157dce0f75bfff0c62e Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Fri, 12 Aug 2016 12:41:57 +0530 Subject: [PATCH] Fix in extract in normal mode --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 8 ++++---- 400-SOURCECODE/AIAHTML5.Web/extract-wp.js | 20 ++++++++------------ 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 43c0bda..b900a6c 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -2107,7 +2107,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //layer change function $scope.LayerChange = function () { - + //1. $scope.terminateCurrentlyRunningWPs(); var canvasDiv = document.getElementById('canvasDiv'); @@ -4782,11 +4782,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if ($rootScope.isExtract == true) { if ($rootScope.previousHighlightList != null || $rootScope.previousHighlightList != undefined || $rootScope.previousHighlightList.length > 0) { - angular.forEach($rootScope.previousHighlightList, function (value, key) { - $timeout(function () { $scope.HighlightBodyOnExtract(value) }, 50); + + $timeout(function () { $scope.HighlightBodyOnExtract() }, 50); // to do - }); + } } diff --git a/400-SOURCECODE/AIAHTML5.Web/extract-wp.js b/400-SOURCECODE/AIAHTML5.Web/extract-wp.js index 7d4b16e..528b0fd 100644 --- a/400-SOURCECODE/AIAHTML5.Web/extract-wp.js +++ b/400-SOURCECODE/AIAHTML5.Web/extract-wp.js @@ -90,20 +90,16 @@ getLocationForMatchedTermsInWholeBody = function (termList, maskCanvasData, colo } // debugger; previousGrayImageDataList[parseInt(bodyRegionId - 1)] = grayImageData; - - // if (matched == true) { - - // } - - - self.postMessage({ - 'bodyRegionId': bodyRegionId, - 'value': grayImageData, - 'canvasId': canvasId - - }); + } } + + self.postMessage({ + 'bodyRegionId': bodyRegionId, + 'value': grayImageData, + 'canvasId': canvasId + + }); } self.onmessage = function (e) { -- libgit2 0.21.4