142 hopFlavourContribution(parseFloat(row.h_time), parseFloat($("#batch_size").jqxNumberInput('decimal')), |
142 hopFlavourContribution(parseFloat(row.h_time), parseFloat($("#batch_size").jqxNumberInput('decimal')), |
143 row.h_useat, parseFloat(row.h_amount)); |
143 row.h_useat, parseFloat(row.h_amount)); |
144 hopAromaContribution(parseFloat(row.h_time), parseFloat($("#batch_size").jqxNumberInput('decimal')), |
144 hopAromaContribution(parseFloat(row.h_time), parseFloat($("#batch_size").jqxNumberInput('decimal')), |
145 row.h_useat, parseFloat(row.h_amount)); |
145 row.h_useat, parseFloat(row.h_amount)); |
146 } |
146 } |
|
147 total_ibus = Math.round(total_ibus); |
147 console.log("calcIBUs(): " + total_ibus); |
148 console.log("calcIBUs(): " + total_ibus); |
|
149 dataRecord.est_ibu = total_ibus; |
148 $('#est_ibu').val(total_ibus); |
150 $('#est_ibu').val(total_ibus); |
149 }; |
151 }; |
150 |
152 |
151 function calcSVG() { |
153 function calcSVG() { |
152 var rows = $('#yeastGrid').jqxGrid('getrows'); |
154 var rows = $('#yeastGrid').jqxGrid('getrows'); |
1451 } |
1453 } |
1452 }); |
1454 }); |
1453 }, |
1455 }, |
1454 ready: function() { |
1456 ready: function() { |
1455 var fg = estimate_fg(psugar, pcara, 0, 0, 0, svg, parseFloat(parseFloat($("#est_og").jqxNumberInput('decimal')))); |
1457 var fg = estimate_fg(psugar, pcara, 0, 0, 0, svg, parseFloat(parseFloat($("#est_og").jqxNumberInput('decimal')))); |
|
1458 dataRecord.est_fg = fg; |
|
1459 $('#est_fg').val(fg); |
1456 calcInit(); |
1460 calcInit(); |
1457 $('#jqxLoader').jqxLoader('close'); |
1461 $('#jqxLoader').jqxLoader('close'); |
1458 $('#jqxTabs').jqxTabs('first'); |
1462 $('#jqxTabs').jqxTabs('first'); |
1459 }, |
1463 }, |
1460 columns: [ |
1464 columns: [ |