# HG changeset patch # User Michiel Broek # Date 1559305448 -7200 # Node ID 1c52a68759605d96661bddd2baffee283d973dfc # Parent eb8ce63eb489d211a42b9730e790291d0fff860b The gauges in monitor fermentors have default animation speed and behaviour again. Some code cleanup. diff -r eb8ce63eb489 -r 1c52a6875960 www/js/mon_fermenter.js --- 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"); } }); }