Reset infuse amount if not an infusion step

Fri, 01 Feb 2019 19:41:46 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 01 Feb 2019 19:41:46 +0100
changeset 229
cfd87d51a33c
parent 228
98536f6539ee
child 230
8edca0488e65

Reset infuse amount if not an infusion step

www/js/rec_edit.js file | annotate | diff | comparison | revisions
--- a/www/js/rec_edit.js	Fri Feb 01 15:30:33 2019 +0100
+++ b/www/js/rec_edit.js	Fri Feb 01 19:41:46 2019 +0100
@@ -2267,7 +2267,7 @@
                                 var container = $("<div style='overflow: hidden; position: relative; margin: 5px;'></div>");
                                 toolbar.append(container);
                                 container.append('<input style="float: left; margin-left: 165px;" id="saddrowbutton" type="button" value="Nieuwe stap" />');
-                                container.append('<input style="float: left; margin-left: 440px;" id="sdeleterowbutton" type="button" value="Verwijder stap" />');
+                                container.append('<input style="float: left; margin-left: 565px;" id="sdeleterowbutton" type="button" value="Verwijder stap" />');
 				$("#saddrowbutton").jqxButton({ template: "primary", theme: theme, height: 27, width: 150 });
 				$("#saddrowbutton").on('click', function () {
 					var datarow = generaterow();
@@ -3062,6 +3062,7 @@
 				$("#wstep_infuse_amount").show();
 				$("#wstep_pmpt").show();
 			} else {
+				rowdata.step_infuse_amount = 0;
 				$("#wstep_infuse_amount").hide();
 				$("#wstep_pmpt").hide();
 			}

mercurial