From 8eb71d1ad593b89bd5b4661f9b915b6a6df8ca86 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Tue, 4 Oct 2016 15:29:41 +0530 Subject: [PATCH] Fixed serach was not working in Male/female medial or male/female lateral arm --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index eedaf70..045f64a 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -4905,21 +4905,26 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo // } // } //} - var loopLength = 0; + var endIndex = 0; + var startIndex = 0; if (($rootScope.viewOrientationId == '1') || ($rootScope.viewOrientationId == '4')) { - loopLength = 7; + endIndex = 6; + startIndex = 1; } - else if (($rootScope.viewOrientationId == '2') || ($rootScope.viewOrientationId == '3')){ - loopLength = 5; + else if (($rootScope.viewOrientationId == '2') || ($rootScope.viewOrientationId == '3')) { + endIndex = 5; + startIndex = 1; } else if (($rootScope.viewOrientationId == '5')) { - loopLength = 4; + endIndex = 6; + startIndex = 2; } - else if (($rootScope.viewOrientationId == '6')) { - loopLength = 1; + else if (($rootScope.viewOrientationId == '6')) { + endIndex = 6; + startIndex = 6; } - for (var i = 1; i < loopLength; i++) { + for (var i = startIndex; i <= endIndex; i++) { var id; var maskId; @@ -4935,7 +4940,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo if (maskcanvas != null || maskcanvas != undefined) document.getElementById('canvasDiv').removeChild(maskcanvas); - if (loopLength == 7) { + if (endIndex == 6) { if (i == 4 || i == 5 || i == 6) { id = 'imageCanvas' + i + '_MR'; @@ -4962,7 +4967,6 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } - $scope.terminateCurrentlyRunningWPs = function () { if ($scope.runningWorkers != null || $scope.runningWorkers != undefined) { var workerCount = $scope.runningWorkers.length; -- libgit2 0.21.4