Commit bdc1e0e0640ac677f52388d99b046da7b961eed4
1 parent
3b4ca746
removing everyting on view chnage
Showing
1 changed file
with
5 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -6937,8 +6937,11 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
6937 | 6937 | $scope.layerNumber = 0; |
6938 | 6938 | |
6939 | 6939 | //remove existing body view |
6940 | - $scope.flushCanvas(); | |
6941 | - | |
6940 | + var canDiv = document.getElementById('canvasDiv'); | |
6941 | + var canDivChildCount = canDiv.childElementCount; | |
6942 | + if (canDivChildCount > 0) { | |
6943 | + canDiv.innerHTML = ''; | |
6944 | + } | |
6942 | 6945 | |
6943 | 6946 | var selectedViewId = $scope.bodyViews[event.currentTarget.title]; |
6944 | 6947 | $rootScope.viewOrientationId = selectedViewId; | ... | ... |