Update primary svg when entering the end primary sg.

Thu, 21 Feb 2019 16:36:02 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 21 Feb 2019 16:36:02 +0100
changeset 281
fef03c7ae353
parent 280
c1f2a90c93ca
child 282
f765249d57d7

Update primary svg when entering the end primary sg.

www/js/prod_edit.js file | annotate | diff | comparison | revisions
--- a/www/js/prod_edit.js	Wed Feb 20 21:57:40 2019 +0100
+++ b/www/js/prod_edit.js	Thu Feb 21 16:36:02 2019 +0100
@@ -2164,6 +2164,10 @@
 			calcIBUs();
 			calcYeast();
 		});
+		$("#primary_end_sg").on('change', function (event) {
+			dataRecord.primary_end_sg = parseFloat(event.args.value);
+			calcFermentation();
+		});
 
 		$("#BLog").jqxButton({ disabled: (dataRecord.log_brew) ? false:true });
 		$("#FLog").jqxButton({ disabled: (dataRecord.log_fermentation) ? false:true });

mercurial