# HG changeset patch # User Michiel Broek # Date 1549900538 -3600 # Node ID 05f9a0c9ed2dc6013b1126f9f96cb6c764e67789 # Parent 24139883b9faca79c85d739be8ae762eb7a089a4 Fixed yeast amount editing using spinbuttons. diff -r 24139883b9fa -r 05f9a0c9ed2d www/js/prod_edit.js --- a/www/js/prod_edit.js Mon Feb 11 16:03:59 2019 +0100 +++ b/www/js/prod_edit.js Mon Feb 11 16:55:38 2019 +0100 @@ -2913,15 +2913,15 @@ if (yeastData.y_form == 0) { $("#wy_pmpt_amount").html("Pak(ken):"); $("#wy_amount").val(yeastData.y_amount); - $("#wy_amount").jqxNumberInput({ decimalDigits: 0, spinButtonsStep: 1 }); + $("#wy_amount").jqxNumberInput({ decimalDigits: 0 }); } else if (yeastData.y_form == 1) { $("#wy_pmpt_amount").html("Gewicht gram:"); $("#wy_amount").val(yeastData.y_amount * 1000); - $("#wy_amount").jqxNumberInput({ decimalDigits: 1, spinButtonsStep: 0.5 }); + $("#wy_amount").jqxNumberInput({ decimalDigits: 1 }); } else { $("#wy_pmpt_amount").html("Volume ml:"); $("#wy_amount").val(yeastData.y_amount * 1000); - $("#wy_amount").jqxNumberInput({ decimalDigits: 0, spinButtonsStep: 1 }); + $("#wy_amount").jqxNumberInput({ decimalDigits: 0 }); } $("#wy_name").val(yeastData.y_name); $("#wy_laboratory").val(yeastData.y_laboratory); diff -r 24139883b9fa -r 05f9a0c9ed2d www/js/rec_edit.js --- a/www/js/rec_edit.js Mon Feb 11 16:03:59 2019 +0100 +++ b/www/js/rec_edit.js Mon Feb 11 16:55:38 2019 +0100 @@ -2367,15 +2367,15 @@ if (yeastData.y_form == 0) { $("#wy_pmpt_amount").html("Pak(ken):"); $("#wy_amount").val(yeastData.y_amount); - $("#wy_amount").jqxNumberInput({ decimalDigits: 0, spinButtonsStep: 1 }); + $("#wy_amount").jqxNumberInput({ decimalDigits: 0 }); } else if (yeastData.y_form == 1) { $("#wy_pmpt_amount").html("Gewicht gram:"); $("#wy_amount").val(yeastData.y_amount * 1000); - $("#wy_amount").jqxNumberInput({ decimalDigits: 1, spinButtonsStep: 0.5 }); + $("#wy_amount").jqxNumberInput({ decimalDigits: 1 }); } else { $("#wy_pmpt_amount").html("Volume ml:"); $("#wy_amount").val(yeastData.y_amount * 1000); - $("#wy_amount").jqxNumberInput({ decimalDigits: 0, spinButtonsStep: 1 }); + $("#wy_amount").jqxNumberInput({ decimalDigits: 0 }); } $("#wy_name").val(yeastData.y_name); $("#wy_laboratory").val(yeastData.y_laboratory);