Commit c9ec5bc10ad6f7d0c6c73b1b905c32f4acd8d15d

Authored by Mukul Rajput
1 parent 414afdff

this is decrement brush size

400-SOURCECODE/AIAHTML5.Web/index.html
@@ -1227,7 +1227,12 @@ @@ -1227,7 +1227,12 @@
1227 }); 1227 });
1228 $("#btnBrushSizeDecrease").click(function () { 1228 $("#btnBrushSizeDecrease").click(function () {
1229 var brushDecreaseVar = $("#btnBrushSize").val(); 1229 var brushDecreaseVar = $("#btnBrushSize").val();
1230 - if (brushDecreaseVar <= 1) { 1230 + if (brushDecreaseVar == "") {
  1231 + var brushDecrementedValue = 1;
  1232 + $("#btnBrushSize").val(brushDecrementedValue);
  1233 + $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue));
  1234 + }
  1235 + else if (brushDecreaseVar <= 1) {
1231 $("#slider-range-min-2").slider("value", 1); 1236 $("#slider-range-min-2").slider("value", 1);
1232 } 1237 }
1233 else { 1238 else {