From c9ec5bc10ad6f7d0c6c73b1b905c32f4acd8d15d Mon Sep 17 00:00:00 2001 From: Mukul Date: Tue, 27 Dec 2016 19:36:43 +0530 Subject: [PATCH] this is decrement brush size --- 400-SOURCECODE/AIAHTML5.Web/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/index.html b/400-SOURCECODE/AIAHTML5.Web/index.html index 8039ba1..1e62f19 100644 --- a/400-SOURCECODE/AIAHTML5.Web/index.html +++ b/400-SOURCECODE/AIAHTML5.Web/index.html @@ -1227,7 +1227,12 @@ }); $("#btnBrushSizeDecrease").click(function () { var brushDecreaseVar = $("#btnBrushSize").val(); - if (brushDecreaseVar <= 1) { + if (brushDecreaseVar == "") { + var brushDecrementedValue = 1; + $("#btnBrushSize").val(brushDecrementedValue); + $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue)); + } + else if (brushDecreaseVar <= 1) { $("#slider-range-min-2").slider("value", 1); } else { -- libgit2 0.21.4