Commit d1edf2af38be46597a4dcd01765336d6a1ce8c9a

Authored by Nikita Kulshreshtha
2 parents 41f3cfcc c8c5336c

Merge branch 'DisableUI3' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -276,6 +276,12 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l
276 276 };
277 277  
278 278 $scope.DisableUI = function () {
  279 +
  280 + //enable daBodyViewDiv which was disabled on thumbnail click so need not bother where to enable
  281 + //as jspanel disable/enable is working for all features
  282 + document.getElementById('daBodyview').style.pointerEvents = "auto";
  283 + document.getElementById('daBodyview').style.opacity = "1";
  284 +
279 285 var daImagePanelConetent = document.getElementsByClassName("jsPanel-content");
280 286 for (var i = 0; i < daImagePanelConetent.length; i++) {
281 287 daImagePanelConetent[i].style.pointerEvents = "none";
... ... @@ -299,8 +305,7 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
299 305 }
300 306  
301 307 $scope.openView = function ($event) {
302   - $scope.DisableUI();
303   -
  308 +
304 309 $rootScope.disableAnnotationTB = false;
305 310 $rootScope.MenuModuleName = "DA";
306 311 $rootScope.isLoading = true;
... ... @@ -316,6 +321,8 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
316 321 var u = $location.url();
317 322 $location.url('/da-body-view');
318 323  
  324 +
  325 +
319 326 var view_list = angular.element($event.currentTarget);
320 327 var view_list_male_female = view_list.attr('title');
321 328  
... ... @@ -456,6 +463,12 @@ AIA.controller(&quot;DAController&quot;, [&quot;$scope&quot;, &quot;$rootScope&quot;, &quot;$compile&quot;, &quot;$http&quot;, &quot;$l
456 463 //da-body-views functions
457 464  
458 465 $scope.openBodyView = function () {
  466 +
  467 + //disable whole div because till now jspanel is not created. enable when jspanel gets disabled because
  468 + //than jspanel will take care of disabling/enabling ui
  469 + document.getElementById('daBodyview').style.pointerEvents = "none";
  470 + document.getElementById('daBodyview').style.opacity = "0.5";
  471 +
459 472 //Check if browser 'REFRESHED' or 'RELOADED'
460 473 if ($rootScope.CommonData != null) {
461 474 //0. we will initially append container to load body
... ...