From 42747ed54feb586d3add28922b6311a0b91b4e49 Mon Sep 17 00:00:00 2001 From: amrita@123 Date: Thu, 19 May 2016 11:01:00 +0530 Subject: [PATCH] Refs: #4126 Annotation is fixed in male and female lateral view. --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js index 4a03115..4febff6 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js @@ -621,7 +621,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo } $scope.GetMaskImageSource = function (src) { - var mciImage = src.replace('.jpg', '_mci.png') + + if (src.match('.png')) { + var mciImage = src.replace('.png', '_mci.png') + } + else + { + var mciImage = src.replace('.jpg', '_mci.png') + } return mciImage; } @@ -876,7 +883,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo $scope.DrawImage = function (h, w, x, y, src, bodyRegionId, isMaskImage) { - // debugger; + // debugger; var imgCanvas = document.createElement('canvas'); // imgCanvas.style.backgroundColor = 'red'; imgCanvas.height = h; @@ -1007,7 +1014,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo //get annotation from term number $scope.GetAnnotationText = function (termNumber) { - debugger; + //debugger; var annotationText; //0 -- libgit2 0.21.4