The gauges in monitor fermentors have default animation speed and behaviour again. Some code cleanup.

Fri, 31 May 2019 14:24:08 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 31 May 2019 14:24:08 +0200
changeset 390
1c52a6875960
parent 389
eb8ce63eb489
child 391
a1bcebc61ddd

The gauges in monitor fermentors have default animation speed and behaviour again. Some code cleanup.

www/js/mon_fermenter.js file | annotate | diff | comparison | revisions
--- a/www/js/mon_fermenter.js	Fri May 31 13:44:32 2019 +0200
+++ b/www/js/mon_fermenter.js	Fri May 31 14:24:08 2019 +0200
@@ -167,9 +167,7 @@
 		labels: { interval: 5 },
 		style: { fill: '#eeeeee', stroke: '#666666' },
 		value: 0,
-		colorScheme: 'scheme05',
-		easing: 'easeOutBack',
-		animationDuration: 600
+		colorScheme: 'scheme05'
 	};
 	var gaugeSmalloptions = {
 		min: -15, max: 25, width: 190, height: 190,
@@ -182,8 +180,6 @@
 		style: { fill: '#eeeeee', stroke: '#666666' },
 		value: 0,
 		colorScheme: 'scheme05',
-		easing: 'easeOutBack',
-		animationDuration: 400,
 		caption: { value: 'Chiller', position: 'bottom', offset: [0, 10] }
 	};
 	$("#gaugeContainer_air").jqxGauge( gaugeoptions );
@@ -228,12 +224,8 @@
 			url: "cmd_fermenter.php",
 			data: data,
 			type: "POST",
-			success: function(data) {
-				//do something after something is received from php
-			},
-			error: function(jqXHR, textStatus, errorThrown) {
-				console.log("sendBase() error");
-			}
+			success: function(data) {},
+			error: function(jqXHR, textStatus, errorThrown) { console.log("sendBase() error"); }
 		});
 	}
 
@@ -246,12 +238,8 @@
 			url: "cmd_fermenter.php",
 			data: data,
 			type: "POST",
-			success: function(data) {
-				//do something after something is received from php
-			},
-			error: function(jqXHR, textStatus, errorThrown) {
-				console.log("sendBase() error");
-			}
+			success: function(data) {},
+			error: function(jqXHR, textStatus, errorThrown) { console.log("sendSwitch() error"); }
 		});
 	}
 
@@ -264,12 +252,8 @@
 			url: "cmd_fermenter.php",
 			data: data,
 			type: "POST",
-			success: function(data) {
-				//do something after something is received from php
-			},
-			error: function(jqXHR, textStatus, errorThrown) {
-				console.log("sendBase() error");
-			}
+			success: function(data) {},
+			error: function(jqXHR, textStatus, errorThrown) { console.log("sendProduct() error"); }
 		});
 	}
 
@@ -281,12 +265,8 @@
 			url: "cmd_fermenter.php",
 			data: data,
 			type: "POST",
-			success: function(data) {
-				//do something after something is received from php
-			},
-			error: function(jqXHR, textStatus, errorThrown) {
-				console.log("sendBase() error");
-			}
+			success: function(data) {},
+			error: function(jqXHR, textStatus, errorThrown) { console.log("sendProfile() error"); }
 		});
 	}
 

mercurial