Commit caaa4c9cbe6178371df609662d0ef7028abf8388
1 parent
414afdff
this is solution for bug erase not work on layer change
Showing
1 changed file
with
2 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -776,7 +776,8 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, DA, Mo |
776 | 776 | // annotation toolbar canvas |
777 | 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 | 781 | $scope.BindCanvasDrawingListners(); |
781 | 782 | // $rootScope.FreeStylePaint(); |
782 | 783 | ... | ... |