Commit 565ccc68936a7b2b9d01cd1cb92e0e29959d460d

Authored by Mukul Rajput
1 parent 7e6d4d67

this is for uncheck fill option and stop working of sketch brush

400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
... ... @@ -429,7 +429,15 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
429 429 $rootScope.setListManagerZindex = true;
430 430 $("#canvasPaint").css("display", "block");
431 431 $("#canvas").css("display", "block");
432   - $rootScope.switchCanvasToPaintCanvas();
  432 +
  433 + if ((document.getElementById('fill-option').checked == false) && ($rootScope.isShapeSyleOkBtnClicked == true)) {
  434 +
  435 + $rootScope.switchCanvas();
  436 + }
  437 + else {
  438 +
  439 + $rootScope.switchCanvasToPaintCanvas();
  440 + }
433 441 $rootScope.shapeType = "FreeStylePaint";
434 442 var btnBrushSizeValue = $("#btnBrushSize").val();
435 443 $rootScope.shapeSize = parseInt(btnBrushSizeValue);
... ... @@ -534,7 +542,12 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic
534 542 $rootScope.isShapeSyleOkBtnClicked = false;
535 543 $rootScope.setPropertiesForShapes = function (id) {
536 544 $rootScope.isShapeSyleOkBtnClicked = true;
537   -
  545 + if ($("#annotationpaintbrushsize").hasClass('activebtncolor'))
  546 + {
  547 + $("#annotationpaintbrushsize").removeClass('activebtncolor')
  548 + $rootScope.switchCanvas();
  549 +
  550 + }
538 551 if ((document.getElementById('fill-option').checked == false) && (document.getElementById('Outline-Option').checked == false)) {
539 552 // $('#btnShapeStyle').attr('disabled', 'disabled');
540 553 } else {
... ...