Commit d545a0a4a57a14646abd23f8fe44e0f365a00601

Authored by Nikita Kulshreshtha
1 parent 50cf26c4

bug 9711 is fixed

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -348,6 +348,9 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location", @@ -348,6 +348,9 @@ AIA.controller("HomeController", ["$rootScope", "Modules", "$log", "$location",
348 var btnBrushSizeValue = $("#btnBrushSize").val(); 348 var btnBrushSizeValue = $("#btnBrushSize").val();
349 $rootScope.shapeSize = parseInt(btnBrushSizeValue); 349 $rootScope.shapeSize = parseInt(btnBrushSizeValue);
350 $("#annotationpaintbrushsize").attr("data-size", $rootScope.shapeSize); 350 $("#annotationpaintbrushsize").attr("data-size", $rootScope.shapeSize);
  351 +
  352 + $("#annotationpaintbrushsize").attr("data-color", $rootScope.shapestyleFillColor);
  353 +
351 if ($rootScope.shapeSize == '') { 354 if ($rootScope.shapeSize == '') {
352 $('#canvasPaint').sketch({ defaultSize: 1 }); 355 $('#canvasPaint').sketch({ defaultSize: 1 });
353 } 356 }
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -536,7 +536,7 @@ @@ -536,7 +536,7 @@
536 <div class="well well-popup"> 536 <div class="well well-popup">
537 <div class="" role="group" aria-label="..."> 537 <div class="" role="group" aria-label="...">
538 <div> 538 <div>
539 - <a href="#canvasPaint" data-size="1" id="annotationpaintbrushsize" class="btn btn-primary btn-xs pull-left btn-annotation" role="button" data-toggle="tooltip" data-placement="top" title="Paint" style="margin-right:1%;" ng-click="paintBrush()"><i class="fa fa-paint-brush"></i></a> 539 + <a href="#canvasPaint" data-size="1" data-color="#fff" id="annotationpaintbrushsize" class="btn btn-primary btn-xs pull-left btn-annotation" role="button" data-toggle="tooltip" data-placement="top" title="Paint" style="margin-right:1%;" ng-click="paintBrush()"><i class="fa fa-paint-brush"></i></a>
540 <button type="button" class="btn btn-primary btn-xs pull-left btn-annotation" data-toggle="tooltip" data-placement="top" title="Erase" ng-click="EraseDrawing()"><i class="fa fa-eraser"></i></button>&nbsp; 540 <button type="button" class="btn btn-primary btn-xs pull-left btn-annotation" data-toggle="tooltip" data-placement="top" title="Erase" ng-click="EraseDrawing()"><i class="fa fa-eraser"></i></button>&nbsp;
541 <div style="width: 80px; margin: 0px 0px 0px 4px; display: inline-block;float:left;"> 541 <div style="width: 80px; margin: 0px 0px 0px 4px; display: inline-block;float:left;">
542 <div style="width: 58px; float: left;"> 542 <div style="width: 58px; float: left;">