Commit 31b4663fc086961250f7af4d426932def08a2dc1

Authored by Amrita Vishnoi
1 parent 7ae0732c

Fix for Bug 15355

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... ... @@ -919,15 +919,19 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
919 919 .where('_ViewOrientationId == ' + viewOrientationId)
920 920 .select();
921 921  
  922 +
  923 +
  924 + //remove existing body view
  925 + var canDiv = document.getElementById('canvasDiv');
  926 + var canDivChildCount = canDiv.childElementCount;
  927 + if (canDivChildCount > 0) {
  928 + canDiv.innerHTML = '';
  929 + }
  930 +
922 931 if ($scope.ColoredImageSRC != null && $scope.ColoredImageSRC.length > 0) {
923 932 $scope.ColoredImageSRC = null;
924 933 $scope.ColoredImageSRC = [];
925   - //remove existing body view
926   - var canDiv = document.getElementById('canvasDiv');
927   - var canDivChildCount = canDiv.childElementCount;
928   - if (canDivChildCount > 0) {
929   - canDiv.innerHTML = '';
930   - }
  934 +
931 935 // $scope.flushCanvas();
932 936 }
933 937 else {
... ...