Commit c104acf430f8da30bc43385ed06ef974e778c0fb
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.
Showing
2 changed files
with
14 additions
and
5 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CAController.js
@@ -371,7 +371,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | @@ -371,7 +371,8 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | ||
371 | 371 | ||
372 | 372 | ||
373 | $scope.openView = function ($event) { | 373 | $scope.openView = function ($event) { |
374 | - | 374 | + $rootScope.disableAnnotationTBFn(); |
375 | + | ||
375 | $rootScope.currentBodyViewId = $event.currentTarget.id; | 376 | $rootScope.currentBodyViewId = $event.currentTarget.id; |
376 | if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") { | 377 | if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") { |
377 | var CITitle = []; | 378 | var CITitle = []; |
@@ -400,9 +401,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | @@ -400,9 +401,14 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout | ||
400 | //console.log($location.url('/clinical-animations-detail')); | 401 | //console.log($location.url('/clinical-animations-detail')); |
401 | 402 | ||
402 | } | 403 | } |
403 | - | 404 | + |
404 | $scope.openBodyView = function () { | 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 | $rootScope.isLoading = true; | 412 | $rootScope.isLoading = true; |
407 | $('#spinner').css('visibility', 'visible'); | 413 | $('#spinner').css('visibility', 'visible'); |
408 | $scope.voId = localStorage.getItem("currentBodyViewId"); | 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,8 +1798,11 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", | ||
1798 | $rootScope.lastX = x; $rootScope.lastY = y; | 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 | //list manager function | 1807 | //list manager function |
1805 | 1808 |