From 07906d9bc0471a9b380db46ec1a596472ad7febb Mon Sep 17 00:00:00 2001 From: Mukul Date: Tue, 25 Oct 2016 16:42:30 +0530 Subject: [PATCH] for bug 8749,8571,7937,7762,7705 --- 400-SOURCECODE/AIAHTML5.Web/app/views/da/da-body-view-list.html | 12 +----------- 400-SOURCECODE/AIAHTML5.Web/app/views/da/da-view.html | 11 +---------- 400-SOURCECODE/AIAHTML5.Web/app/widget/MainMenu.html | 12 +----------- 400-SOURCECODE/AIAHTML5.Web/index.html | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------- 4 files changed, 72 insertions(+), 49 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-body-view-list.html b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-body-view-list.html index c4b25ca..5f4ffc1 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-body-view-list.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/da/da-body-view-list.html @@ -28,17 +28,7 @@ @@ -1153,11 +1169,10 @@ range: "min", min: 1, max: 60, - value: 10, + value: 1, slide: function (event, ui) { - $("#amount-2").val(ui.value); - + $("#btnBrushSize").val(ui.value); }, stop: function (event, ui) { @@ -1167,6 +1182,44 @@ } }); + + + $("#btnBrushSize").keydown(function () { + var getBrushSizevalueKeydown = this.value; + $("#slider-range-min-2").slider("value", parseInt(getBrushSizevalueKeydown)); + }); + $("#btnBrushSize").keyup(function () { + var getBrushSizevalueKeyUp = this.value; + $("#slider-range-min-2").slider("value", parseInt(getBrushSizevalueKeyUp)); + }); + $("#btnBrushSizeIncrement").click(function () { + var brushIncrementVar = $("#btnBrushSize").val(); + if (brushIncrementVar >= 60) { + $("#slider-range-min-2").slider("value", 60); + } + else { + var brushIncrementedValue = parseInt(brushIncrementVar) + 1; + $("#btnBrushSize").val(brushIncrementedValue); + $("#slider-range-min-2").slider("value", parseInt(brushIncrementedValue)); + } + }); + $("#btnBrushSizeDecrease").click(function () { + var brushDecreaseVar = $("#btnBrushSize").val(); + if (brushDecreaseVar <= 1) { + $("#slider-range-min-2").slider("value", 1); + } + else { + var brushDecrementedValue = parseInt(brushDecreaseVar) - 1; + $("#btnBrushSize").val(brushDecrementedValue); + $("#slider-range-min-2").slider("value", parseInt(brushDecrementedValue)); + } + }); + $("#btnBrushSize").val($("#slider-range-min-2").slider("value")); + + + + + //$("#slider-range-min-2").on("slidestart", function (event, ui) { // $('.btnCursor').trigger('click'); @@ -1178,7 +1231,6 @@ //}); // $("#slider-range-min-2").on("slidechange", function (event, ui) { alert("ssasa"); }); - $("#amount-2").val($("#slider-vertical-2").slider("value")); $(function () { $('[data-toggle="tooltip"]').tooltip(); -- libgit2 0.21.4