diff -r f51754bce08e -r 9034e65b0d7a www/js/prod_edit.js --- a/www/js/prod_edit.js Sat Feb 29 15:42:12 2020 +0100 +++ b/www/js/prod_edit.js Sun Mar 01 11:23:22 2020 +0100 @@ -118,6 +118,7 @@ { name: 'log_brew', type: 'int' }, { name: 'log_fermentation', type: 'int' }, { name: 'log_ispindel', type: 'int' }, + { name: 'log_co2pressure', type: 'int' }, { name: 'inventory_reduced', type: 'int' }, { name: 'locked', type: 'int' }, { name: 'eq_name', type: 'string' }, @@ -4125,6 +4126,7 @@ $('#BLog').jqxButton({ disabled: (dataRecord.log_brew) ? false : true}); $('#FLog').jqxButton({ disabled: (dataRecord.log_fermentation) ? false : true}); $('#ILog').jqxButton({ disabled: (dataRecord.log_ispindel) ? false : true}); + $('#CLog').jqxButton({ disabled: (dataRecord.log_co2pressure) ? false : true}); } $('#styleSelect').jqxDropDownList({ @@ -4251,6 +4253,7 @@ log_brew: dataRecord.log_brew, log_fermentation: dataRecord.log_fermentation, log_ispindel: dataRecord.log_ispindel, + log_co2pressure: dataRecord.log_co2pressure, inventory_reduced: dataRecord.inventory_reduced, locked: dataRecord.locked, eq_name: $('#eq_name').val(), @@ -5993,6 +5996,11 @@ $('#bottle_priming_amount,#keg_priming_amount,#bottle_priming_total,#bottle_pressure,#keg_priming_total,#keg_pressure').jqxNumberInput(Show1dec); $('#bottle_abv,#keg_abv').jqxNumberInput(Show2dec); $('#bottle_carbonation_temp,#keg_carbonation_temp').jqxNumberInput(YeastT); + $('#CLog').jqxButton({ template: 'info', width: '150px', theme: theme }); + $('#CLog').click(function() { + // Open log in a new tab. + window.open('log_co2pressure.php?code=' + dataRecord.code + '&name=' + dataRecord.name); + }); // Tab 12, Tasting $('#taste_date').jqxTooltip({ content: 'De proef datum van dit bier.' });