www/js/inv_mash_profiles.js

changeset 25
d9da6c40dff5
parent 23
4b157d7a1cee
child 38
b7d44c98d609
--- a/www/js/inv_mash_profiles.js	Sat Aug 18 17:40:24 2018 +0200
+++ b/www/js/inv_mash_profiles.js	Sat Aug 18 19:40:30 2018 +0200
@@ -51,14 +51,7 @@
 		datafields: [
 			{ name: 'record', type: 'number' },
 			{ name: 'name', type: 'string' },
-			{ name: 'grain_temp', type: 'float' },
-			{ name: 'tun_temp', type: 'float' },
-			{ name: 'sparge_temp', type: 'float' },
-			{ name: 'ph', type: 'float' },
-			{ name: 'tun_weight', type: 'float' },
-			{ name: 'tun_specific_heat', type: 'float' },
 			{ name: 'notes', type: 'string' },
-			{ name: 'equip_adjust', type: 'bool' },
 			{ name: 'steps', type: 'string' }
 		],
 		id: 'record',
@@ -114,15 +107,7 @@
 	};
 	// initialize the input fields.
 	$("#name").jqxInput({ theme: theme, width: 250, height: 23 });
-	$("#grain_temp").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true });
-	$("#tun_temp").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true });
-	$("#sparge_temp").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true });
-	$("#ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true });
-	$("#tun_weight").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true });
-	$("#tun_specific_heat").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true });
-
 	$("#notes").jqxInput({ theme: theme, width: 640, height: 100 });
-	$("#equip_adjust").jqxCheckBox({ theme: theme, width: 120, height: 23 });
 	var dataAdapter = new $.jqx.dataAdapter(source);
 	var editrow = -1;
 	// initialize jqxGrid
@@ -144,13 +129,6 @@
 				editrow = -1;
 				$("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } });
 				$("#name").val('');
-				$("#grain_temp").val('');
-				$("#tun_temp").val('');
-				$("#sparge_temp").val('');
-				$("#ph").val('');
-				$("#tun_weight").val('');
-				$("#tun_specific_heat").val('');
-				$("#equip_adjust").val('');
 				$("#notes").val('');
 				$("#popupWindow").jqxWindow('open');
 			});
@@ -169,13 +147,6 @@
 					// get the clicked row's data and initialize the input fields.
 					var dataRecord = $("#jqxgrid").jqxGrid('getrowdata', editrow);
 					$("#name").val(dataRecord.name);
-					$("#grain_temp").val(dataRecord.grain_temp);
-					$("#tun_temp").val(dataRecord.tun_temp);
-					$("#sparge_temp").val(dataRecord.sparge_temp);
-					$("#ph").val(dataRecord.ph);
-					$("#tun_weight").val(dataRecord.tun_weight);
-					$("#tun_specific_heat").val(dataRecord.tun_specific_heat);
-					$("#equip_adjust").val(dataRecord.equip_adjust);
 					$("#notes").val(dataRecord.notes);
 					// show the popup window.
 					$("#popupWindow").jqxWindow('open');
@@ -211,13 +182,6 @@
 			var row = {
 				record: rowID,
 				name: $("#name").val(),
-				grain_temp: parseFloat($("#grain_temp").jqxNumberInput('decimal')),
-				tun_temp: parseFloat($("#tun_temp").jqxNumberInput('decimal')),
-				sparge_temp: parseFloat($("#sparge_temp").jqxNumberInput('decimal')),
-				ph: parseFloat($("#ph").jqxNumberInput('decimal')),
-				tun_weight: parseFloat($("#tun_weight").jqxNumberInput('decimal')),
-				tun_specific_heat: parseFloat($("#tun_specific_heat").jqxNumberInput('decimal')),
-				equip_adjust: $("equip_adjust").val(),
 				notes: $("#notes").val()
 			};
 			$('#jqxgrid').jqxGrid('updaterow', rowID, row);
@@ -227,13 +191,6 @@
 			var newrow = {
 				record: -1,
 				name: $("#name").val(),
-				grain_temp: parseFloat($("#grain_temp").jqxNumberInput('decimal')),
-				tun_temp: parseFloat($("#tun_temp").jqxNumberInput('decimal')),
-				sparge_temp: parseFloat($("#sparge_temp").jqxNumberInput('decimal')),
-				ph: parseFloat($("#ph").jqxNumberInput('decimal')),
-				tun_weight: parseFloat($("#tun_weight").jqxNumberInput('decimal')),
-				tun_specific_heat: parseFloat($("#tun_specific_heat").jqxNumberInput('decimal')),
-				equip_adjust: $("equip_adjust").val(),
 				notes: $("#notes").val()
 			};
 			$('#jqxgrid').jqxGrid('addrow', null, newrow);

mercurial