Commit c104acf430f8da30bc43385ed06ef974e778c0fb

Authored by unknown
1 parent 70a656e8

Commit changes for issue ref : #9037 Clinical Animation > Annotation's Tools, Mo…

…des, Edit shape Style should be disable on CA's detail page.
400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
... ... @@ -371,7 +371,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
371 371  
372 372  
373 373 $scope.openView = function ($event) {
374   -
  374 + $rootScope.disableAnnotationTBFn();
  375 +
375 376 $rootScope.currentBodyViewId = $event.currentTarget.id;
376 377 if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") {
377 378 var CITitle = [];
... ... @@ -400,9 +401,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout
400 401 //console.log($location.url('/clinical-animations-detail'));
401 402  
402 403 }
403   -
  404 +
404 405 $scope.openBodyView = function () {
405   -
  406 +
  407 + if ($rootScope.disableAnnotationTB == true)
  408 + {
  409 + $('#AnnotaionPopupDiv').find('input, textarea, button, select').attr('disabled', 'disabled');
  410 + $('#slider-range-min-2').slider('disable');
  411 + }
406 412 $rootScope.isLoading = true;
407 413 $('#spinner').css('visibility', 'visible');
408 414 $scope.voId = localStorage.getItem("currentBodyViewId");
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -1798,8 +1798,11 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
1798 1798 $rootScope.lastX = x; $rootScope.lastY = y;
1799 1799 }
1800 1800  
1801   -
1802   -
  1801 + $rootScope.disableAnnotationTB = false;
  1802 + $rootScope.disableAnnotationTBFn = function()
  1803 + {
  1804 + $rootScope.disableAnnotationTB = true;
  1805 + }
1803 1806  
1804 1807 //list manager function
1805 1808  
... ...