Commit 9fcc3c412dec79de0e66168519e72408742ee1d9

Authored by Amrita Vishnoi
2 parents ad250edf caaa4c9c

Merge branch 'eraselayerchange' into Develop

400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
@@ -776,7 +776,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo @@ -776,7 +776,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo
776 // annotation toolbar canvas 776 // annotation toolbar canvas
777 if ($("#canvasDiv").find("canvas[id='canvasPaint']").length == 0) { 777 if ($("#canvasDiv").find("canvas[id='canvasPaint']").length == 0) {
778 778
779 - $("#canvasDiv").append('<canvas id="canvasPaint" width="2277" height="3248" class="canvas-annotationStyle1"></canvas><canvas id="canvas" width="2277" height="3248" class="canvas-annotationStyle"></canvas>'); 779 + var $layerChange = $("#canvasDiv").append('<canvas id="canvasPaint" width="2277" ng-click="FreeStylePaint($event)" height="3248" class="canvas-annotationStyle1"></canvas><canvas id="canvas" width="2277" height="3248" class="canvas-annotationStyle"></canvas>');
  780 + $compile($layerChange)($scope);
780 $scope.BindCanvasDrawingListners(); 781 $scope.BindCanvasDrawingListners();
781 // $rootScope.FreeStylePaint(); 782 // $rootScope.FreeStylePaint();
782 783