115 { name: 'birth', type: 'string' }, |
115 { name: 'birth', type: 'string' }, |
116 { name: 'stage', type: 'int' }, |
116 { name: 'stage', type: 'int' }, |
117 { name: 'notes', type: 'string' }, |
117 { name: 'notes', type: 'string' }, |
118 { name: 'log_brew', type: 'int' }, |
118 { name: 'log_brew', type: 'int' }, |
119 { name: 'log_fermentation', type: 'int' }, |
119 { name: 'log_fermentation', type: 'int' }, |
|
120 { name: 'log_ispindel', type: 'int' }, |
120 { name: 'inventory_reduced', type: 'int' }, |
121 { name: 'inventory_reduced', type: 'int' }, |
121 { name: 'locked', type: 'int' }, |
122 { name: 'locked', type: 'int' }, |
122 { name: 'eq_name', type: 'string' }, |
123 { name: 'eq_name', type: 'string' }, |
123 { name: 'eq_boil_size', type: 'float' }, |
124 { name: 'eq_boil_size', type: 'float' }, |
124 { name: 'eq_batch_size', type: 'float' }, |
125 { name: 'eq_batch_size', type: 'float' }, |
4120 whirlpoolHops(); |
4121 whirlpoolHops(); |
4121 calcIBUs(); |
4122 calcIBUs(); |
4122 }); |
4123 }); |
4123 $('#BLog').jqxButton({ disabled: (dataRecord.log_brew) ? false : true}); |
4124 $('#BLog').jqxButton({ disabled: (dataRecord.log_brew) ? false : true}); |
4124 $('#FLog').jqxButton({ disabled: (dataRecord.log_fermentation) ? false : true}); |
4125 $('#FLog').jqxButton({ disabled: (dataRecord.log_fermentation) ? false : true}); |
|
4126 $('#ILog').jqxButton({ disabled: (dataRecord.log_ispindel) ? false : true}); |
4125 } |
4127 } |
4126 |
4128 |
4127 $('#styleSelect').jqxDropDownList({ |
4129 $('#styleSelect').jqxDropDownList({ |
4128 placeHolder: 'Kies bierstijl:', |
4130 placeHolder: 'Kies bierstijl:', |
4129 theme: theme, |
4131 theme: theme, |
4245 birth: $('#birth').val(), |
4247 birth: $('#birth').val(), |
4246 stage: dataRecord.stage, |
4248 stage: dataRecord.stage, |
4247 notes: $('#notes').val(), |
4249 notes: $('#notes').val(), |
4248 log_brew: dataRecord.log_brew, |
4250 log_brew: dataRecord.log_brew, |
4249 log_fermentation: dataRecord.log_fermentation, |
4251 log_fermentation: dataRecord.log_fermentation, |
|
4252 log_ispindel: dataRecord.log_ispindel, |
4250 inventory_reduced: dataRecord.inventory_reduced, |
4253 inventory_reduced: dataRecord.inventory_reduced, |
4251 locked: dataRecord.locked, |
4254 locked: dataRecord.locked, |
4252 eq_name: $('#eq_name').val(), |
4255 eq_name: $('#eq_name').val(), |
4253 eq_boil_size: parseFloat($('#eq_boil_size').jqxNumberInput('decimal')), |
4256 eq_boil_size: parseFloat($('#eq_boil_size').jqxNumberInput('decimal')), |
4254 eq_batch_size: parseFloat($('#eq_batch_size').jqxNumberInput('decimal')), |
4257 eq_batch_size: parseFloat($('#eq_batch_size').jqxNumberInput('decimal')), |
5944 $('#FLog').jqxButton({ template: 'info', width: '150px', theme: theme }); |
5947 $('#FLog').jqxButton({ template: 'info', width: '150px', theme: theme }); |
5945 $('#FLog').click(function() { |
5948 $('#FLog').click(function() { |
5946 // Open log in a new tab. |
5949 // Open log in a new tab. |
5947 window.open('log_fermentation.php?code=' + dataRecord.code + '&name=' + dataRecord.name); |
5950 window.open('log_fermentation.php?code=' + dataRecord.code + '&name=' + dataRecord.name); |
5948 }); |
5951 }); |
|
5952 $('#ILog').jqxButton({ template: 'info', width: '150px', theme: theme }); |
|
5953 $('#ILog').click(function() { |
|
5954 // Open log in a new tab. |
|
5955 window.open('log_ispindel.php?code=' + dataRecord.code + '&name=' + dataRecord.name); |
|
5956 }); |
5949 |
5957 |
5950 // Tab 11, Packaging |
5958 // Tab 11, Packaging |
5951 // TODO: high gravity packaging, extra water and recalc abv, color and ibu. |
5959 // TODO: high gravity packaging, extra water and recalc abv, color and ibu. |
5952 $('#package_date').jqxTooltip({ content: 'De verpakkings datum van dit bier.' }); |
5960 $('#package_date').jqxTooltip({ content: 'De verpakkings datum van dit bier.' }); |
5953 $('#package_date').jqxDateTimeInput(Dateopts); |
5961 $('#package_date').jqxDateTimeInput(Dateopts); |