Mon, 11 Feb 2019 16:55:38 +0100
Fixed yeast amount editing using spinbuttons.
www/js/prod_edit.js | file | annotate | diff | comparison | revisions | |
www/js/rec_edit.js | file | annotate | diff | comparison | revisions |
--- 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);
--- 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);