www/js/prod_edit.js

changeset 167
dabcd35f8f92
parent 164
0a5abea575a9
child 169
9a685ee91537
--- a/www/js/prod_edit.js	Thu Jan 03 14:21:35 2019 +0100
+++ b/www/js/prod_edit.js	Thu Jan 03 20:56:47 2019 +0100
@@ -1309,39 +1309,6 @@
 	});
 
 	// 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);
 	$("#equipmentSelect").jqxDropDownList({
 		placeHolder: "Kies apparatuur:",
 		theme: theme,
@@ -1783,7 +1750,6 @@
 				$("#equipmentSelect").jqxDropDownList({ disabled: true });
 			if (brewstage > 0) {
 				$("#Delete").jqxButton({ disabled: true });
-				$("#birth").jqxDateTimeInput({ disabled: true });
 			}
 			if (brewstage < 3) {
 				$('#jqxTabs').jqxTabs('disableAt', 9);
@@ -2912,7 +2878,7 @@
 	$("#code").jqxTooltip({ content: 'Product code nummer.' });
 	$("#code").jqxInput({ theme: theme, width: 100, height: 23 });
 	$("#birth").jqxTooltip({ content: 'De ontwerp datum van dit product.' });
-	$("#birth").jqxDateTimeInput({ theme: theme, width: 150, height: 23, formatString: 'yyyy-MM-dd' });
+	$("#birth").jqxInput({ theme: theme, width: 120, height: 23 });
 	$("#stage").jqxTooltip({ content: 'De productie fase van dit product.' });
 	$("#stage").jqxInput({ theme: theme, width: 100, height: 23 });
 	$("#log_brew").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true });

mercurial