Adjusted the hop progress bars.

Thu, 30 May 2019 20:47:08 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Thu, 30 May 2019 20:47:08 +0200
changeset 382
547c23b50d00
parent 381
0ec81755396e
child 383
2395bdfac387

Adjusted the hop progress bars.

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	Thu May 30 17:39:53 2019 +0200
+++ b/www/js/prod_edit.js	Thu May 30 20:47:08 2019 +0200
@@ -489,8 +489,8 @@
 		}
 		total_ibus = Math.round(total_ibus * 10) / 10;
 		ferm_ibus = Math.round(ferm_ibus * 10) / 10;
-		hop_flavour = Math.round(hop_flavour * 1000 / 7.5) / 10;
-		hop_aroma = Math.round(hop_aroma * 1000 / 9) / 10;
+		hop_flavour = Math.round(hop_flavour * 1000 / 5) / 10;
+		hop_aroma = Math.round(hop_aroma * 1000 / 6) / 10;
 		if (hop_flavour > 100)
 			hop_flavour = 100;
 		if (hop_aroma > 100)
--- a/www/js/rec_edit.js	Thu May 30 17:39:53 2019 +0200
+++ b/www/js/rec_edit.js	Thu May 30 20:47:08 2019 +0200
@@ -362,8 +362,8 @@
 					        row.h_useat, parseFloat(row.h_amount));
 		}
 		total_ibus = Math.round(total_ibus * 10) / 10;
-		hop_flavour = Math.round(hop_flavour * 1000 / 7.5) / 10;
-                hop_aroma = Math.round(hop_aroma * 1000 / 9) / 10;
+		hop_flavour = Math.round(hop_flavour * 1000 / 5) / 10;
+                hop_aroma = Math.round(hop_aroma * 1000 / 6) / 10;
 		if (hop_flavour > 100)
                         hop_flavour = 100;
                 if (hop_aroma > 100)

mercurial