Made a lot of variables local in functions.

Fri, 04 Jan 2019 20:32:11 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 04 Jan 2019 20:32:11 +0100
changeset 170
71850ebe5a1c
parent 169
9a685ee91537
child 171
48cf3ea270f8

Made a lot of variables local in functions.

www/js/global.js file | annotate | diff | comparison | revisions
www/js/prod_new.js file | annotate | diff | comparison | revisions
www/js/rec_new.js file | annotate | diff | comparison | revisions
--- a/www/js/global.js	Fri Jan 04 20:17:32 2019 +0100
+++ b/www/js/global.js	Fri Jan 04 20:32:11 2019 +0100
@@ -501,7 +501,7 @@
 
 function srm_to_color(srm) {
 
-	i = Math.round(srm * 10);
+	var i = Math.round(srm * 10);
         if (i < 0) {
 		i = 0;
 	}
--- a/www/js/prod_new.js	Fri Jan 04 20:17:32 2019 +0100
+++ b/www/js/prod_new.js	Fri Jan 04 20:32:11 2019 +0100
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2018
+ * Copyright (C) 2018-2019
  *
  * Michiel Broek <mbroek at mbse dot eu>
  *
--- a/www/js/rec_new.js	Fri Jan 04 20:17:32 2019 +0100
+++ b/www/js/rec_new.js	Fri Jan 04 20:32:11 2019 +0100
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * Copyright (C) 2018
+ * Copyright (C) 2018-2019
  *
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -261,7 +261,7 @@
 					message += 'De kooktijd moet tussen 4 en 360 minuten zijn. <br />';
 				}
 				if ((est_og < 1.010) || (est_og > 1.200)) {
-					message += 'Het OG moet tussen 1.010 en 1.500 zijn. <br />';
+					message += 'Het OG moet tussen 1.010 en 1.200 zijn. <br />';
 				}
 				if ((efficiency < 35) || (efficiency > 95)) {
 					message += 'Het brouwzaal rendement moet tussen 35 en 95 zijn. <br />';

mercurial