Commit fee17fee0f8c62fcb19d45f89a43712fc30a41bd
Merge branch 'brushdecrement' into Develop
Showing
1 changed file
with
6 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/index.html
@@ -1230,7 +1230,12 @@ | @@ -1230,7 +1230,12 @@ | ||
1230 | }); | 1230 | }); |
1231 | $("#btnBrushSizeDecrease").click(function () { | 1231 | $("#btnBrushSizeDecrease").click(function () { |
1232 | var brushDecreaseVar = $("#btnBrushSize").val(); | 1232 | var brushDecreaseVar = $("#btnBrushSize").val(); |
1233 | - if (brushDecreaseVar <= 1) { | 1233 | + if (brushDecreaseVar == "") { |
1234 | + var brushDecrementedValue = 1; | ||
1235 | + $("#btnBrushSize").val(brushDecrementedValue); | ||
1236 | + $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue)); | ||
1237 | + } | ||
1238 | + else if (brushDecreaseVar <= 1) { | ||
1234 | $("#slider-range-min-2").slider("value", 1); | 1239 | $("#slider-range-min-2").slider("value", 1); |
1235 | } | 1240 | } |
1236 | else { | 1241 | else { |