Commit 42747ed54feb586d3add28922b6311a0b91b4e49

Authored by Amrita Vishnoi
1 parent e48b0491

Refs: #4126 Annotation is fixed in male and female lateral view.

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -621,7 +621,14 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
621 621 }
622 622  
623 623 $scope.GetMaskImageSource = function (src) {
624   - var mciImage = src.replace('.jpg', '_mci.png')
  624 +
  625 + if (src.match('.png')) {
  626 + var mciImage = src.replace('.png', '_mci.png')
  627 + }
  628 + else
  629 + {
  630 + var mciImage = src.replace('.jpg', '_mci.png')
  631 + }
625 632 return mciImage;
626 633  
627 634 }
... ... @@ -876,7 +883,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
876 883  
877 884 $scope.DrawImage = function (h, w, x, y, src, bodyRegionId, isMaskImage) {
878 885  
879   - // debugger;
  886 + // debugger;
880 887 var imgCanvas = document.createElement('canvas');
881 888 // imgCanvas.style.backgroundColor = 'red';
882 889 imgCanvas.height = h;
... ... @@ -1007,7 +1014,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
1007 1014  
1008 1015 //get annotation from term number
1009 1016 $scope.GetAnnotationText = function (termNumber) {
1010   - debugger;
  1017 + //debugger;
1011 1018  
1012 1019 var annotationText;
1013 1020 //0
... ...