Commit 8c8189c14961a2fb16b1b3c10abc75d29b8a4c6f
1 parent
9fb080fc
old code was there to disable UI
Showing
1 changed file
with
7 additions
and
3 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -2872,8 +2872,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -2872,8 +2872,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
2872 | 2872 | ||
2873 | $scope.isScrolledToHighlightedBR = false; | 2873 | $scope.isScrolledToHighlightedBR = false; |
2874 | //disable the background till the system gets highlighted. | 2874 | //disable the background till the system gets highlighted. |
2875 | - document.getElementById("daView").style.pointerEvents="none"; | 2875 | + $scope.DisableUI(); |
2876 | $('.ui-slider').slider('disable'); | 2876 | $('.ui-slider').slider('disable'); |
2877 | + | ||
2877 | $("#btnTranparency").attr('disabled', 'disabled'); | 2878 | $("#btnTranparency").attr('disabled', 'disabled'); |
2878 | $rootScope.currentLayerNumber = $scope.layerNumber; | 2879 | $rootScope.currentLayerNumber = $scope.layerNumber; |
2879 | 2880 | ||
@@ -2928,7 +2929,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -2928,7 +2929,9 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
2928 | 2929 | ||
2929 | $scope.message = AIAConstants.NO_BODY_SYSTEM_AVAILABLE; | 2930 | $scope.message = AIAConstants.NO_BODY_SYSTEM_AVAILABLE; |
2930 | $("#daMessageModal").modal('show'); | 2931 | $("#daMessageModal").modal('show'); |
2931 | - document.getElementById("daView").style.pointerEvents = "auto"; | 2932 | + |
2933 | + $scope.EnableUI(); | ||
2934 | + | ||
2932 | $('.ui-slider').slider('enable'); | 2935 | $('.ui-slider').slider('enable'); |
2933 | } | 2936 | } |
2934 | else { | 2937 | else { |
@@ -3136,7 +3139,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | @@ -3136,7 +3139,8 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l | ||
3136 | else { | 3139 | else { |
3137 | $('#spinner').css('visibility', 'hidden') | 3140 | $('#spinner').css('visibility', 'hidden') |
3138 | $rootScope.isLoading = false; | 3141 | $rootScope.isLoading = false; |
3139 | - document.getElementById("daView").style.pointerEvents = "auto"; | 3142 | + |
3143 | + $scope.EnableUI(); | ||
3140 | $('.ui-slider').slider('enable'); | 3144 | $('.ui-slider').slider('enable'); |
3141 | } | 3145 | } |
3142 | 3146 |