diff -r 92afe6b59610 -r ffe0416614b3 www/js/inv_yeasts.js --- a/www/js/inv_yeasts.js Sun Mar 08 17:43:55 2020 +0100 +++ b/www/js/inv_yeasts.js Sun Mar 08 19:52:39 2020 +0100 @@ -96,7 +96,8 @@ { name: 'harvest_time', type: 'int' }, { name: 'pitch_temperature', type: 'float' }, { name: 'pofpos', type: 'int' }, - { name: 'zymocide', type: 'int' } + { name: 'zymocide', type: 'int' }, + { name: 'short_desc', type: 'string' } ], id: 'record', url: url, @@ -159,6 +160,7 @@ // initialize the input fields. $('#name').jqxInput({ theme: theme, width: 640, height: 23 }); $('#laboratory').jqxInput({ theme: theme, width: 320, height: 23 }); + $('#short_desc').jqxInput({ theme: theme, width: 320, height: 23 }); $('#product_id').jqxInput({ theme: theme, width: 320, height: 23 }); $('#type').jqxDropDownList({ theme: theme, @@ -255,6 +257,7 @@ $('#popupWindow').jqxWindow({ position: { x: 110, y: 30 } }); $('#name').val(''); $('#laboratory').val(''); + $('#short_desc').val(''); $('#product_id').val(''); $('#type').val('Bovengist'); $('#form').val('Vloeibaar'); @@ -356,6 +359,7 @@ $('#pitch_temperature').val(parseFloat(dataRecord.pitch_temperature)); $('#pofpos').val(dataRecord.pofpos); $('#zymocide').val(dataRecord.zymocide); + $('#short_desc').val(dataRecord.short_desc); calcTotal(); // show the popup window. $('#popupWindow').jqxWindow('open'); @@ -478,7 +482,8 @@ harvest_time: $('#harvest_time').val(), pitch_temperature: parseFloat($('#pitch_temperature').jqxNumberInput('decimal')), pofpos: $('#pofpos').val(), - zymocide: $('#zymocide').val() + zymocide: $('#zymocide').val(), + short_desc: $('#short_desc').val() }; if (editrow >= 0) { $('#jqxgrid').jqxGrid('updaterow', rowID, row);