diff -r 112c278be803 -r 10b61aacb1c1 www/js/prod_edit.js --- a/www/js/prod_edit.js Tue Jan 21 21:16:26 2020 +0100 +++ b/www/js/prod_edit.js Wed Jan 29 13:26:01 2020 +0100 @@ -117,6 +117,7 @@ { name: 'notes', type: 'string' }, { name: 'log_brew', type: 'int' }, { name: 'log_fermentation', type: 'int' }, + { name: 'log_ispindel', type: 'int' }, { name: 'inventory_reduced', type: 'int' }, { name: 'locked', type: 'int' }, { name: 'eq_name', type: 'string' }, @@ -4122,6 +4123,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}); } $('#styleSelect').jqxDropDownList({ @@ -4247,6 +4249,7 @@ notes: $('#notes').val(), log_brew: dataRecord.log_brew, log_fermentation: dataRecord.log_fermentation, + log_ispindel: dataRecord.log_ispindel, inventory_reduced: dataRecord.inventory_reduced, locked: dataRecord.locked, eq_name: $('#eq_name').val(), @@ -5946,6 +5949,11 @@ // Open log in a new tab. window.open('log_fermentation.php?code=' + dataRecord.code + '&name=' + dataRecord.name); }); + $('#ILog').jqxButton({ template: 'info', width: '150px', theme: theme }); + $('#ILog').click(function() { + // Open log in a new tab. + window.open('log_ispindel.php?code=' + dataRecord.code + '&name=' + dataRecord.name); + }); // Tab 11, Packaging // TODO: high gravity packaging, extra water and recalc abv, color and ibu.