Commit 020c0dd5e299fd618c65ea55f21503d532f8260a

Authored by Nikita Kulshreshtha
2 parents 4b280fff c55173ee

Merge branch 'TBIssue1' of http://52.6.196.163/ADAM/AIAHTML5 into TBIssue1

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -5646,18 +5646,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -5646,18 +5646,23 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
5646 } 5646 }
5647 5647
5648 $scope.CloseTransparencyBox = function () { 5648 $scope.CloseTransparencyBox = function () {
5649 -  
5650 - 5649 +
  5650 + //for enabling annoataions.
  5651 + //Now everything si done on canavases uswed in annotation toolbar.
  5652 +
  5653 + if (parseInt($("#canvasPaint").css("z-index")) > parseInt($("#canvas").css("z-index")))
  5654 + {
  5655 + $rootScope.switchCanvasToPaintCanvas();
  5656 + }
  5657 + else
  5658 + {
  5659 + $rootScope.switchCanvas();
  5660 + }
  5661 + // $rootScope.switchCanvas();
5651 //To enable extract button 5662 //To enable extract button
5652 $scope.isTransparencyActivated = false; 5663 $scope.isTransparencyActivated = false;
5653 $("#btnExtract").removeClass("disabled"); 5664 $("#btnExtract").removeClass("disabled");
5654 5665
5655 - //$('.com_anno').css('display', 'none');  
5656 -  
5657 - //$('#sppeachBubble_annotation').css('display', 'none');  
5658 - //$('#dot_annotation').css('display', 'none');  
5659 - //$('#bord_annotation').css('display', 'none');  
5660 -  
5661 5666
5662 $('.com_anno').remove(); 5667 $('.com_anno').remove();
5663 5668