www/js/global.js

changeset 167
dabcd35f8f92
parent 164
0a5abea575a9
child 170
71850ebe5a1c
--- a/www/js/global.js	Thu Jan 03 14:21:35 2019 +0100
+++ b/www/js/global.js	Thu Jan 03 20:56:47 2019 +0100
@@ -57,6 +57,41 @@
 };
 var styleslist = new $.jqx.dataAdapter(stylesSource);
 
+// Equipemnt dropdown list
+var equipmentUrl = "includes/db_inventory_equipments.php";
+var equipmentSource = {
+	datatype: "json",
+	datafields: [
+		{ name: 'name', type: 'string' },
+		{ name: 'boil_size', type: 'float' },
+		{ name: 'batch_size', type: 'float' },
+		{ name: 'tun_volume', type: 'float' },
+		{ name: 'tun_weight', type: 'float' },
+		{ name: 'tun_specific_heat', type: 'float' },
+		{ name: 'tun_material', type: 'string' },
+		{ name: 'tun_height', type: 'float' },
+		{ name: 'top_up_water', type: 'float' },
+		{ name: 'trub_chiller_loss', type: 'float' },
+		{ name: 'evap_rate', type: 'float' },
+		{ name: 'boil_time', type: 'float' },
+		{ name: 'calc_boil_volume', type: 'bool' },
+		{ name: 'top_up_kettle', type: 'float' },
+		{ name: 'hop_utilization', type: 'float' },
+		{ name: 'notes', type: 'string' },
+		{ name: 'lauter_volume', type: 'float' },
+		{ name: 'lauter_height', type: 'float' },
+		{ name: 'lauter_deadspace', type: 'float' },
+		{ name: 'kettle_volume', type: 'float' },
+		{ name: 'kettle_height', type: 'float' },
+		{ name: 'mash_volume', type: 'float' },
+		{ name: 'mash_max', type: 'float' },
+		{ name: 'efficiency', type: 'float' }
+	],
+	url: equipmentUrl,
+	async: true
+};
+var equipmentlist = new $.jqx.dataAdapter(equipmentSource);
+
 // dropdownlist datasource from inventory_fermentables
 var fermentableInvSource = {
 	datatype: "json",

mercurial