19 * along with ThermFerm; see the file COPYING. If not, write to the Free |
19 * along with ThermFerm; see the file COPYING. If not, write to the Free |
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
21 *****************************************************************************/ |
21 *****************************************************************************/ |
22 |
22 |
23 |
23 |
24 function createDelElements() { |
24 function createPopupElements() { |
25 |
25 |
26 $('#eventWindow').jqxWindow({ |
26 $('#eventWindow').jqxWindow({ |
27 theme: theme, |
27 theme: theme, |
28 position: { x: 490, y: 210 }, |
28 position: { x: 490, y: 210 }, |
29 width: 300, |
29 width: 300, |
38 $('#delOk').jqxButton({ template: 'danger', width: '65px', theme: theme }); |
38 $('#delOk').jqxButton({ template: 'danger', width: '65px', theme: theme }); |
39 $('#delCancel').jqxButton({ template: 'success', width: '65px', theme: theme }); |
39 $('#delCancel').jqxButton({ template: 'success', width: '65px', theme: theme }); |
40 $('#delCancel').focus(); |
40 $('#delCancel').focus(); |
41 } |
41 } |
42 }); |
42 }); |
43 $('#eventWindow').jqxWindow('hide'); |
|
44 |
43 |
45 $('#volumeWindow').jqxWindow({ |
44 $('#volumeWindow').jqxWindow({ |
46 theme: theme, |
45 theme: theme, |
47 position: { x: 380, y: 210 }, |
46 position: { x: 380, y: 210 }, |
48 width: 500, |
47 width: 500, |
51 isModal: true, |
50 isModal: true, |
52 modalOpacity: 0.4, |
51 modalOpacity: 0.4, |
53 autoOpen: false, |
52 autoOpen: false, |
54 cancelButton: $('#volumeReady') |
53 cancelButton: $('#volumeReady') |
55 }); |
54 }); |
56 $('#volumeWindow').jqxWindow('hide'); |
55 |
|
56 $('#pitchrateWindow').jqxWindow({ |
|
57 theme: theme, |
|
58 position: { x: 330, y: 210 }, |
|
59 width: 600, |
|
60 height: 200, |
|
61 resizable: false, |
|
62 isModal: true, |
|
63 modalOpacity: 0.4, |
|
64 autoOpen: false, |
|
65 cancelButton: $('#pitchrateReady') |
|
66 }); |
|
67 |
|
68 $('#popupFermentable').jqxWindow({ |
|
69 width: 800, |
|
70 height: 300, |
|
71 position: { x: 230, y: 100 }, |
|
72 resizable: false, |
|
73 theme: theme, |
|
74 isModal: true, |
|
75 autoOpen: false, |
|
76 cancelButton: $('#FermentableReady'), |
|
77 modalOpacity: 0.40 |
|
78 }); |
|
79 |
|
80 $('#popupHop').jqxWindow({ |
|
81 width: 800, |
|
82 height: 300, |
|
83 position: { x: 230, y: 100 }, |
|
84 resizable: false, |
|
85 theme: theme, |
|
86 isModal: true, |
|
87 autoOpen: false, |
|
88 cancelButton: $('#HopReady'), |
|
89 modalOpacity: 0.40 |
|
90 }); |
|
91 |
|
92 $('#popupMisc').jqxWindow({ |
|
93 width: 800, |
|
94 height: 275, |
|
95 position: { x: 230, y: 100 }, |
|
96 resizable: false, |
|
97 theme: theme, |
|
98 isModal: true, |
|
99 autoOpen: false, |
|
100 cancelButton: $('#MiscReady'), |
|
101 modalOpacity: 0.40 |
|
102 }); |
|
103 |
|
104 $('#popupYeast').jqxWindow({ |
|
105 width: 800, |
|
106 height: 300, |
|
107 position: { x: 230, y: 100 }, |
|
108 resizable: false, |
|
109 theme: theme, |
|
110 isModal: true, |
|
111 autoOpen: false, |
|
112 cancelButton: $('#YeastReady'), |
|
113 modalOpacity: 0.40 |
|
114 }); |
|
115 |
|
116 $('#popupMash').jqxWindow({ |
|
117 width: 800, |
|
118 height: 375, |
|
119 position: { x: 230, y: 100 }, |
|
120 resizable: false, |
|
121 theme: theme, |
|
122 isModal: true, |
|
123 autoOpen: false, |
|
124 cancelButton: $('#MashReady'), |
|
125 modalOpacity: 0.40 |
|
126 }); |
57 } |
127 } |
58 |
128 |
59 |
129 |
60 |
130 |
61 $(document).ready(function() { |
131 $(document).ready(function() { |
67 est_mash_sg = 0, |
137 est_mash_sg = 0, |
68 psugar = 0, // Percentage real sugars |
138 psugar = 0, // Percentage real sugars |
69 pcara = 0, // Percentage cara/crystal malts |
139 pcara = 0, // Percentage cara/crystal malts |
70 svg = 77, // Default attenuation |
140 svg = 77, // Default attenuation |
71 mashkg = 0, // Malt in mash weight |
141 mashkg = 0, // Malt in mash weight |
72 pitchrate = 0.75, // Yeast pitch rate default |
|
73 initcells = 0, // Initial yeast cell count |
142 initcells = 0, // Initial yeast cell count |
74 |
143 |
75 ok_fermentables = 1, // Fermentables are in stock |
144 ok_fermentables = 1, // Fermentables are in stock |
76 ok_hops = 1, // Hops are in stock |
145 ok_hops = 1, // Hops are in stock |
77 ok_miscs = 1, // Miscs are in stock |
146 ok_miscs = 1, // Miscs are in stock |
323 { name: 'starter_enable', type: 'int' }, |
392 { name: 'starter_enable', type: 'int' }, |
324 { name: 'starter_type', type: 'int' }, |
393 { name: 'starter_type', type: 'int' }, |
325 { name: 'starter_sg', type: 'float' }, |
394 { name: 'starter_sg', type: 'float' }, |
326 { name: 'starter_viability', type: 'int' }, |
395 { name: 'starter_viability', type: 'int' }, |
327 { name: 'yeast_prod_date', type: 'string' }, |
396 { name: 'yeast_prod_date', type: 'string' }, |
|
397 { name: 'yeast_pitchrate', type: 'float' }, |
328 { name: 'prop1_type', type: 'int' }, |
398 { name: 'prop1_type', type: 'int' }, |
329 { name: 'prop1_volume', type: 'float' }, |
399 { name: 'prop1_volume', type: 'float' }, |
330 { name: 'prop2_type', type: 'int' }, |
400 { name: 'prop2_type', type: 'int' }, |
331 { name: 'prop2_volume', type: 'float' }, |
401 { name: 'prop2_volume', type: 'float' }, |
332 { name: 'prop3_type', type: 'int' }, |
402 { name: 'prop3_type', type: 'int' }, |
553 $('#wa_base_name').val(dataRecord.wa_base_name); |
623 $('#wa_base_name').val(dataRecord.wa_base_name); |
554 $('#starter_type').val(dataRecord.starter_type); |
624 $('#starter_type').val(dataRecord.starter_type); |
555 $('#starter_sg').val(dataRecord.starter_sg); |
625 $('#starter_sg').val(dataRecord.starter_sg); |
556 $('#starter_viability').val(dataRecord.starter_viability); |
626 $('#starter_viability').val(dataRecord.starter_viability); |
557 $('#yeast_prod_date').val(dataRecord.yeast_prod_date); |
627 $('#yeast_prod_date').val(dataRecord.yeast_prod_date); |
|
628 $('#yeast_pitchrate').val(dataRecord.yeast_pitchrate); |
558 $('#prop1_type').val(dataRecord.prop1_type); |
629 $('#prop1_type').val(dataRecord.prop1_type); |
559 $('#prop1_volume').val(dataRecord.prop1_volume); |
630 $('#prop1_volume').val(dataRecord.prop1_volume); |
560 $('#prop2_type').val(dataRecord.prop2_type); |
631 $('#prop2_type').val(dataRecord.prop2_type); |
561 $('#prop2_volume').val(dataRecord.prop2_volume); |
632 $('#prop2_volume').val(dataRecord.prop2_volume); |
562 $('#prop3_type').val(dataRecord.prop3_type); |
633 $('#prop3_type').val(dataRecord.prop3_type); |
2566 rowscount = $('#yeastGrid').jqxGrid('getdatainformation').rowscount; |
2637 rowscount = $('#yeastGrid').jqxGrid('getdatainformation').rowscount; |
2567 if (rowscount == 0) |
2638 if (rowscount == 0) |
2568 return; // no yeast in recipe |
2639 return; // no yeast in recipe |
2569 |
2640 |
2570 var maybe_starter = 0; |
2641 var maybe_starter = 0; |
|
2642 var pitchrate = 0.75; // Yeast pitch rate default |
2571 for (i = 0; i < rowscount; i++) { |
2643 for (i = 0; i < rowscount; i++) { |
2572 row = $('#yeastGrid').jqxGrid('getrowdata', i); |
2644 row = $('#yeastGrid').jqxGrid('getrowdata', i); |
2573 if (row.y_use == 0) { // primary |
2645 if (row.y_use == 0) { // primary |
2574 // pitchrate see https://www.brewersfriend.com/yeast-pitch-rate-and-starter-calculator/ |
2646 // pitchrate see https://www.brewersfriend.com/yeast-pitch-rate-and-starter-calculator/ |
2575 // and http://braukaiser.com/blog/blog/2012/11/03/estimating-yeast-growth/ |
2647 // and http://braukaiser.com/blog/blog/2012/11/03/estimating-yeast-growth/ |
2582 } else { |
2654 } else { |
2583 pitchrate = 0.75; |
2655 pitchrate = 0.75; |
2584 if (dataRecord.est_og > 1.060) |
2656 if (dataRecord.est_og > 1.060) |
2585 pitchrate = 1.0; |
2657 pitchrate = 1.0; |
2586 } |
2658 } |
|
2659 if (dataRecord.yeast_pitchrate < 0.01) { |
|
2660 dataRecord.yeast_pitchrate = pitchrate; |
|
2661 $('#yeast_pitchrate').val(pitchrate); |
|
2662 } |
2587 |
2663 |
2588 if (row.y_form != 1) { // Not dry yeast |
2664 if (row.y_form != 1) { // Not dry yeast |
2589 maybe_starter = 1; |
2665 maybe_starter = 1; |
2590 } |
2666 } |
2591 } |
2667 } |
2592 } |
2668 } |
2593 |
2669 |
2594 needed = Round(pitchrate * volume * plato, 1); |
2670 needed = Round(dataRecord.yeast_pitchrate * volume * plato, 1); |
2595 $('#need_cells').val(needed); |
2671 $('#need_cells').val(needed); |
2596 use_cells = initcells; |
2672 use_cells = initcells; |
2597 if (needed <= initcells) |
2673 if (needed <= initcells) |
2598 maybe_starter = 0; |
2674 maybe_starter = 0; |
2599 console.log('calcYeast() pitchrate:' + pitchrate + ' start:' + initcells + ' needed:' + needed + ' volume:' + volume + ' maybe_starter:' + maybe_starter); |
2675 console.log('calcYeast() pitchrate:' + dataRecord.yeast_pitchrate + ' start:' + initcells + ' needed:' + needed + ' volume:' + volume + ' maybe_starter:' + maybe_starter); |
2600 |
2676 |
2601 if (maybe_starter != dataRecord.starter_enable) { |
2677 if (maybe_starter != dataRecord.starter_enable) { |
2602 dataRecord.starter_enable = maybe_starter; |
2678 dataRecord.starter_enable = maybe_starter; |
2603 showStarter(); |
2679 showStarter(); |
2604 } |
2680 } |
3729 $('#sparge_acid_perc').jqxNumberInput({ spinButtons: false, readOnly: true, width: false }); |
3805 $('#sparge_acid_perc').jqxNumberInput({ spinButtons: false, readOnly: true, width: false }); |
3730 $('#starter_type').jqxDropDownList({ disabled: true }); |
3806 $('#starter_type').jqxDropDownList({ disabled: true }); |
3731 $('#starter_try').jqxButton({ disabled: true }); |
3807 $('#starter_try').jqxButton({ disabled: true }); |
3732 $('#starter_sg').jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
3808 $('#starter_sg').jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
3733 $('#yeast_prod_date').jqxDateTimeInput({ disabled: true }); |
3809 $('#yeast_prod_date').jqxDateTimeInput({ disabled: true }); |
|
3810 $('#yeast_pitchrate').jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
|
3811 $('#but_pickpitchrate').jqxButton({ disabled: true }); |
3734 } |
3812 } |
3735 if (dataRecord.stage > 3) { // Primary fermentation done |
3813 if (dataRecord.stage > 3) { // Primary fermentation done |
3736 $('#brew_date_start').jqxDateTimeInput({ disabled: true }); |
3814 $('#brew_date_start').jqxDateTimeInput({ disabled: true }); |
3737 $('#brew_date_end').jqxDateTimeInput({ disabled: true }); |
3815 $('#brew_date_end').jqxDateTimeInput({ disabled: true }); |
3738 $('#brew_mash_ph').jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
3816 $('#brew_mash_ph').jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
4618 starter_enable: dataRecord.starter_enable, |
4696 starter_enable: dataRecord.starter_enable, |
4619 starter_type: $('#starter_type').val(), |
4697 starter_type: $('#starter_type').val(), |
4620 starter_sg: parseFloat($('#starter_sg').jqxNumberInput('decimal')), |
4698 starter_sg: parseFloat($('#starter_sg').jqxNumberInput('decimal')), |
4621 starter_viability: parseFloat($('#starter_viability').jqxNumberInput('decimal')), |
4699 starter_viability: parseFloat($('#starter_viability').jqxNumberInput('decimal')), |
4622 yeast_prod_date: $('#yeast_prod_date').val(), |
4700 yeast_prod_date: $('#yeast_prod_date').val(), |
|
4701 yeast_pitchrate: parseFloat($('#yeast_pitchrate').jqxNumberInput('decimal')), |
4623 prop1_type: $('#prop1_type').val(), |
4702 prop1_type: $('#prop1_type').val(), |
4624 prop1_volume: parseFloat($('#prop1_volume').jqxNumberInput('decimal')), |
4703 prop1_volume: parseFloat($('#prop1_volume').jqxNumberInput('decimal')), |
4625 prop2_type: $('#prop2_type').val(), |
4704 prop2_type: $('#prop2_type').val(), |
4626 prop2_volume: parseFloat($('#prop2_volume').jqxNumberInput('decimal')), |
4705 prop2_volume: parseFloat($('#prop2_volume').jqxNumberInput('decimal')), |
4627 prop3_type: $('#prop3_type').val(), |
4706 prop3_type: $('#prop3_type').val(), |
4815 }); |
4894 }); |
4816 $('#ferm_lintner').jqxProgressBar({ |
4895 $('#ferm_lintner').jqxProgressBar({ |
4817 width: 300, height: 23, theme: theme, showText: true, max: 200, animationDuration: 0, |
4896 width: 300, height: 23, theme: theme, showText: true, max: 200, animationDuration: 0, |
4818 colorRanges: [{ stop: 30, color: '#FF0000' },{ stop: 40, color: '#EB7331' },{ stop: 200, color: '#008C00' }], |
4897 colorRanges: [{ stop: 30, color: '#FF0000' },{ stop: 40, color: '#EB7331' },{ stop: 200, color: '#008C00' }], |
4819 renderText: function(text) { return (parseInt(text) * 2) + ' lintner'; } |
4898 renderText: function(text) { return (parseInt(text) * 2) + ' lintner'; } |
4820 }); |
|
4821 $('#popupFermentable').jqxWindow({ |
|
4822 width: 800, |
|
4823 height: 300, |
|
4824 position: { x: 230, y: 100 }, |
|
4825 resizable: false, |
|
4826 theme: theme, |
|
4827 isModal: true, |
|
4828 autoOpen: false, |
|
4829 cancelButton: $('#FermentableReady'), |
|
4830 modalOpacity: 0.40 |
|
4831 }); |
4899 }); |
4832 $('#FermentableReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
4900 $('#FermentableReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
4833 $('#FermentableReady').click(function() { |
4901 $('#FermentableReady').click(function() { |
4834 var row, rowID = $('#fermentableGrid').jqxGrid('getrowid', fermentableRow); |
4902 var row, rowID = $('#fermentableGrid').jqxGrid('getrowid', fermentableRow); |
4835 console.log('FermentableReady row:' + fermentableRow + ' ID:' + rowID); |
4903 console.log('FermentableReady row:' + fermentableRow + ' ID:' + rowID); |
5082 return 'Veel'; |
5150 return 'Veel'; |
5083 else |
5151 else |
5084 return 'Zeer veel'; |
5152 return 'Zeer veel'; |
5085 } |
5153 } |
5086 }); |
5154 }); |
5087 $('#popupHop').jqxWindow({ |
|
5088 width: 800, |
|
5089 height: 300, |
|
5090 position: { x: 230, y: 100 }, |
|
5091 resizable: false, |
|
5092 theme: theme, |
|
5093 isModal: true, |
|
5094 autoOpen: false, |
|
5095 cancelButton: $('#HopReady'), |
|
5096 modalOpacity: 0.40 |
|
5097 }); |
|
5098 $('#HopReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5155 $('#HopReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5099 $('#HopReady').click(function() { |
5156 $('#HopReady').click(function() { |
5100 var row, rowID = $('#hopGrid').jqxGrid('getrowid', hopRow); |
5157 var row, rowID = $('#hopGrid').jqxGrid('getrowid', hopRow); |
5101 row = { |
5158 row = { |
5102 h_name: $('#wh_name').val(), |
5159 h_name: $('#wh_name').val(), |
5231 $('#wh_pmpt_time').html('Tijd in minuten'); |
5288 $('#wh_pmpt_time').html('Tijd in minuten'); |
5232 } |
5289 } |
5233 }); |
5290 }); |
5234 |
5291 |
5235 // Tab 5, Miscs |
5292 // Tab 5, Miscs |
5236 $('#popupMisc').jqxWindow({ |
|
5237 width: 800, |
|
5238 height: 275, |
|
5239 position: { x: 230, y: 100 }, |
|
5240 resizable: false, |
|
5241 theme: theme, |
|
5242 isModal: true, |
|
5243 autoOpen: false, |
|
5244 cancelButton: $('#MiscReady'), |
|
5245 modalOpacity: 0.40 |
|
5246 }); |
|
5247 $('#MiscReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5293 $('#MiscReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5248 $('#MiscReady').click(function() { |
5294 $('#MiscReady').click(function() { |
5249 var row, rowID = $('#miscGrid').jqxGrid('getrowid', miscRow); |
5295 var row, rowID = $('#miscGrid').jqxGrid('getrowid', miscRow); |
5250 console.log('MiscReady row:' + miscRow + ' ID:' + rowID); |
5296 console.log('MiscReady row:' + miscRow + ' ID:' + rowID); |
5251 row = { |
5297 row = { |
5343 $('#est_abv2').jqxTooltip({ content: 'Verwacht alcohol volume %. Dit wordt automatisch berekend.' }); |
5389 $('#est_abv2').jqxTooltip({ content: 'Verwacht alcohol volume %. Dit wordt automatisch berekend.' }); |
5344 $('#yeast_cells').jqxTooltip({ content: 'Het aantal miljard beschikbare gistcellen zonder eventuele starter.' }); |
5390 $('#yeast_cells').jqxTooltip({ content: 'Het aantal miljard beschikbare gistcellen zonder eventuele starter.' }); |
5345 $('#need_cells').jqxTooltip({ content: 'Het aantal miljard nodige cellen is afhankelijk van het begin SG, biertype en volume.' }); |
5391 $('#need_cells').jqxTooltip({ content: 'Het aantal miljard nodige cellen is afhankelijk van het begin SG, biertype en volume.' }); |
5346 $('#plato_cells').jqxTooltip({ content: 'De berekende pitchrate in miljard cellen per ml per graad Plato.' }); |
5392 $('#plato_cells').jqxTooltip({ content: 'De berekende pitchrate in miljard cellen per ml per graad Plato.' }); |
5347 $('#yeast_prod_date').jqxTooltip({ content: 'Bij korrelgisten is meestal "best voor" datum op het zakje gedrukt.<br>Gebruik die datum maar dan twee jaar eerder als productie datum.<br>Bij White Labs is de productie datum vier maanden voor de "Best by" datum die geprint op het buisje.<br>Bij Wyeast is dit de "manufacture date" die op het pak geprint is.<br>Voor schuine buis, slurry, opkweek en gedroogd is dit de datum dat je de gist geoogst hebt.' }); |
5393 $('#yeast_prod_date').jqxTooltip({ content: 'Bij korrelgisten is meestal "best voor" datum op het zakje gedrukt.<br>Gebruik die datum maar dan twee jaar eerder als productie datum.<br>Bij White Labs is de productie datum vier maanden voor de "Best by" datum die geprint op het buisje.<br>Bij Wyeast is dit de "manufacture date" die op het pak geprint is.<br>Voor schuine buis, slurry, opkweek en gedroogd is dit de datum dat je de gist geoogst hebt.' }); |
|
5394 $('#yeast_pitchrate').jqxTooltip({ content: 'De gewenste pitchrate in miljard cellen per ml per graad Plato voor de vergisting van dit bier.' }); |
5348 |
5395 |
5349 $('#est_fg2,#plato_cells').jqxNumberInput(Show3dec); |
5396 $('#est_fg2,#plato_cells').jqxNumberInput(Show3dec); |
|
5397 $('#est_fg2').jqxNumberInput({ width: 70 }); |
5350 $('#est_abv2').jqxNumberInput(Show2dec); |
5398 $('#est_abv2').jqxNumberInput(Show2dec); |
|
5399 $('#est_abv2').jqxNumberInput({ width: 70, symbol: '%', symbolPosition: 'right' }); |
5351 $('#yeast_cells,#need_cells').jqxNumberInput(Show1dec); |
5400 $('#yeast_cells,#need_cells').jqxNumberInput(Show1dec); |
5352 $('#yeast_prod_date').jqxDateTimeInput(Dateopts); |
5401 $('#yeast_prod_date').jqxDateTimeInput(Dateopts); |
5353 $('#yeast_prod_date').on('close', function(event) { |
5402 $('#yeast_prod_date').on('close', function(event) { |
5354 calcViability(); |
5403 calcViability(); |
5355 calcFermentables(); |
5404 calcFermentables(); |
5356 calcYeast(); |
5405 calcYeast(); |
5357 }); |
5406 }); |
5358 $('#popupYeast').jqxWindow({ |
5407 $('#yeast_pitchrate').jqxNumberInput(Spin3dec); |
5359 width: 800, |
5408 $('#yeast_pitchrate').on('change', function(event) { |
5360 height: 300, |
5409 dataRecord.yeast_pitchrate = parseFloat(event.args.value); |
5361 position: { x: 230, y: 100 }, |
5410 calcViability(); |
5362 resizable: false, |
5411 calcFermentables(); |
|
5412 calcYeast(); |
|
5413 }); |
|
5414 $('#but_pickpitchrate').jqxButton({ template: 'success', width: '23px', height: 23, theme: theme }); |
|
5415 $('#but_pickpitchrate').bind('click', function() { |
|
5416 $('#pick_pitchrate').val(0); // Set default pick incase no perfect match. |
|
5417 $('#pick_pitchrate').val(dataRecord.yeast_pitchrate); |
|
5418 $('#pitchrateWindow').jqxWindow('open'); |
|
5419 }); |
|
5420 $('#pick_pitchrate').jqxDropDownList({ |
5363 theme: theme, |
5421 theme: theme, |
5364 isModal: true, |
5422 source: PitchrateAdapter, |
5365 autoOpen: false, |
5423 valueMember: 'rate', |
5366 cancelButton: $('#YeastReady'), |
5424 displayMember: 'nl', |
5367 modalOpacity: 0.40 |
5425 width: 275, |
|
5426 height: 23, |
|
5427 autoDropDownHeight: true, |
|
5428 dropDownVerticalAlignment: 'top' |
|
5429 }); |
|
5430 $('#pitchrateReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
|
5431 $('#pitchrateReady').click(function() { |
|
5432 console.log('pitchrateReady ' + $('#pick_pitchrate').val() ); |
|
5433 dataRecord.yeast_pitchrate = parseFloat($('#pick_pitchrate').val()); |
|
5434 $('#yeast_pitchrate').val(dataRecord.yeast_pitchrate); |
|
5435 calcViability(); |
|
5436 calcFermentables(); |
|
5437 calcYeast(); |
5368 }); |
5438 }); |
5369 $('#YeastReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5439 $('#YeastReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5370 $('#YeastReady').click(function() { |
5440 $('#YeastReady').click(function() { |
5371 var row, rowID = $('#yeastGrid').jqxGrid('getrowid', yeastRow); |
5441 var row, rowID = $('#yeastGrid').jqxGrid('getrowid', yeastRow); |
5372 console.log('YeastReady row:' + yeastRow + ' ID:' + rowID); |
5442 console.log('YeastReady row:' + yeastRow + ' ID:' + rowID); |
5585 }); |
5655 }); |
5586 $('#est_mashvol').jqxTooltip({ content: 'Het totale volume van het maishwater en de mout in de maish pan.' }); |
5656 $('#est_mashvol').jqxTooltip({ content: 'Het totale volume van het maishwater en de mout in de maish pan.' }); |
5587 $('#est_mashvol').jqxNumberInput(Show1dec); |
5657 $('#est_mashvol').jqxNumberInput(Show1dec); |
5588 $('#est_mashtime').jqxTooltip({ content: 'De totale tijdsduur van het maischen.' }); |
5658 $('#est_mashtime').jqxTooltip({ content: 'De totale tijdsduur van het maischen.' }); |
5589 $('#est_mashtime').jqxInput({ theme: theme, width: 70, height: 23 }); |
5659 $('#est_mashtime').jqxInput({ theme: theme, width: 70, height: 23 }); |
5590 $('#popupMash').jqxWindow({ |
|
5591 width: 800, |
|
5592 height: 375, |
|
5593 position: { x: 230, y: 100 }, |
|
5594 resizable: false, |
|
5595 theme: theme, |
|
5596 isModal: true, |
|
5597 autoOpen: false, |
|
5598 cancelButton: $('#MashReady'), |
|
5599 modalOpacity: 0.40 |
|
5600 }); |
|
5601 $('#MashReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5660 $('#MashReady').jqxButton({ template: 'success', width: '90px', theme: theme }); |
5602 $('#MashReady').click(function() { |
5661 $('#MashReady').click(function() { |
5603 calcFermentables(); |
5662 calcFermentables(); |
5604 calcWater(); |
5663 calcWater(); |
5605 calcSparge(); |
5664 calcSparge(); |