4545 calcWater(); |
4400 calcWater(); |
4546 calcSparge(); |
4401 calcSparge(); |
4547 } |
4402 } |
4548 }); |
4403 }); |
4549 |
4404 |
4550 function saveRecord(goback) { |
|
4551 var row = { |
|
4552 record: my_record, |
|
4553 uuid: dataRecord.uuid, |
|
4554 name: $('#name').val(), |
|
4555 code: $('#code').val(), |
|
4556 birth: $('#birth').val(), |
|
4557 stage: dataRecord.stage, |
|
4558 notes: $('#notes').val(), |
|
4559 log_brew: dataRecord.log_brew, |
|
4560 log_fermentation: dataRecord.log_fermentation, |
|
4561 log_ispindel: dataRecord.log_ispindel, |
|
4562 log_co2pressure: dataRecord.log_co2pressure, |
|
4563 inventory_reduced: dataRecord.inventory_reduced, |
|
4564 locked: dataRecord.locked, |
|
4565 eq_name: $('#eq_name').val(), |
|
4566 eq_boil_size: parseFloat($('#eq_boil_size').jqxNumberInput('decimal')), |
|
4567 eq_batch_size: parseFloat($('#eq_batch_size').jqxNumberInput('decimal')), |
|
4568 eq_tun_volume: parseFloat($('#eq_tun_volume').jqxNumberInput('decimal')), |
|
4569 eq_tun_weight: dataRecord.eq_tun_weight, |
|
4570 eq_tun_specific_heat: dataRecord.eq_tun_specific_heat, |
|
4571 eq_tun_material: dataRecord.eq_tun_material, |
|
4572 eq_tun_height: dataRecord.eq_tun_height, |
|
4573 eq_top_up_water: parseFloat($('#eq_top_up_water').jqxNumberInput('decimal')), |
|
4574 eq_trub_chiller_loss: parseFloat($('#eq_trub_chiller_loss').jqxNumberInput('decimal')), |
|
4575 eq_evap_rate: parseFloat($('#eq_evap_rate').jqxNumberInput('decimal')), |
|
4576 eq_boil_time: parseFloat($('#eq_boil_time').jqxNumberInput('decimal')), |
|
4577 eq_calc_boil_volume: dataRecord.eq_calc_boil_volume, |
|
4578 eq_top_up_kettle: parseFloat($('#eq_top_up_kettle').jqxNumberInput('decimal')), |
|
4579 eq_hop_utilization: parseFloat($('#eq_hop_utilization').jqxNumberInput('decimal')), |
|
4580 eq_notes: $('#eq_notes').val(), |
|
4581 eq_lauter_volume: parseFloat($('#eq_lauter_volume').jqxNumberInput('decimal')), |
|
4582 eq_lauter_height: dataRecord.eq_lauter_height, |
|
4583 eq_lauter_deadspace: parseFloat($('#eq_lauter_deadspace').jqxNumberInput('decimal')), |
|
4584 eq_kettle_volume: parseFloat($('#eq_kettle_volume').jqxNumberInput('decimal')), |
|
4585 eq_kettle_height: dataRecord.eq_kettle_height, |
|
4586 eq_mash_volume: parseFloat($('#eq_mash_volume').jqxNumberInput('decimal')), |
|
4587 eq_mash_max: parseFloat($('#eq_mash_max').jqxNumberInput('decimal')), |
|
4588 eq_efficiency: parseFloat($('#eq_efficiency').jqxNumberInput('decimal')), |
|
4589 brew_date_start: $('#brew_date_start').val(), |
|
4590 brew_mash_ph: parseFloat($('#brew_mash_ph').jqxNumberInput('decimal')), |
|
4591 brew_mash_sg: parseFloat($('#brew_mash_sg').jqxNumberInput('decimal')), |
|
4592 brew_mash_efficiency: parseFloat($('#brew_mash_efficiency').jqxNumberInput('decimal')), |
|
4593 brew_sparge_est: parseFloat($('#brew_sparge_est').jqxNumberInput('decimal')), |
|
4594 brew_sparge_ph: parseFloat($('#brew_sparge_ph').jqxNumberInput('decimal')), |
|
4595 brew_preboil_volume: parseFloat($('#brew_preboil_volume').jqxNumberInput('decimal')), |
|
4596 brew_preboil_sg: parseFloat($('#brew_preboil_sg').jqxNumberInput('decimal')), |
|
4597 brew_preboil_ph: parseFloat($('#brew_preboil_ph').jqxNumberInput('decimal')), |
|
4598 brew_preboil_efficiency: parseFloat($('#brew_preboil_efficiency').jqxNumberInput('decimal')), |
|
4599 brew_aboil_volume: parseFloat($('#brew_aboil_volume').jqxNumberInput('decimal')), |
|
4600 brew_aboil_sg: parseFloat($('#brew_aboil_sg').jqxNumberInput('decimal')), |
|
4601 brew_aboil_ph: parseFloat($('#brew_aboil_ph').jqxNumberInput('decimal')), |
|
4602 brew_aboil_efficiency: parseFloat($('#brew_aboil_efficiency').jqxNumberInput('decimal')), |
|
4603 brew_cooling_method: $('#brew_cooling_method').val(), |
|
4604 brew_cooling_time: parseFloat($('#brew_cooling_time').jqxNumberInput('decimal')), |
|
4605 brew_cooling_to: parseFloat($('#brew_cooling_to').jqxNumberInput('decimal')), |
|
4606 brew_whirlpool9: parseFloat($('#brew_whirlpool9').jqxNumberInput('decimal')), |
|
4607 brew_whirlpool7: parseFloat($('#brew_whirlpool7').jqxNumberInput('decimal')), |
|
4608 brew_whirlpool6: parseFloat($('#brew_whirlpool6').jqxNumberInput('decimal')), |
|
4609 brew_whirlpool2: parseFloat($('#brew_whirlpool2').jqxNumberInput('decimal')), |
|
4610 brew_fermenter_volume: parseFloat($('#brew_fermenter_volume').jqxNumberInput('decimal')), |
|
4611 brew_fermenter_extrawater: parseFloat($('#brew_fermenter_extrawater').jqxNumberInput('decimal')), |
|
4612 brew_fermenter_tcloss: parseFloat($('#brew_fermenter_tcloss').jqxNumberInput('decimal')), |
|
4613 brew_aeration_time: parseFloat($('#brew_aeration_time').jqxNumberInput('decimal')), |
|
4614 brew_aeration_speed: parseFloat($('#brew_aeration_speed').jqxNumberInput('decimal')), |
|
4615 brew_aeration_type: $('#brew_aeration_type').val(), |
|
4616 brew_fermenter_sg: parseFloat($('#brew_fermenter_sg').jqxNumberInput('decimal')), |
|
4617 brew_fermenter_ibu: parseFloat($('#brew_fermenter_ibu').jqxNumberInput('decimal')), |
|
4618 brew_fermenter_color: parseFloat($('#brew_fermenter_color').jqxNumberInput('decimal')), |
|
4619 brew_date_end: $('#brew_date_end').val(), |
|
4620 og: dataRecord.og, |
|
4621 fg: parseFloat($('#fg').jqxNumberInput('decimal')), |
|
4622 primary_start_temp: parseFloat($('#primary_start_temp').jqxNumberInput('decimal')), |
|
4623 primary_max_temp: parseFloat($('#primary_max_temp').jqxNumberInput('decimal')), |
|
4624 primary_end_temp: parseFloat($('#primary_end_temp').jqxNumberInput('decimal')), |
|
4625 primary_end_sg: parseFloat($('#primary_end_sg').jqxNumberInput('decimal')), |
|
4626 primary_end_date: $('#primary_end_date').val(), |
|
4627 secondary_temp: parseFloat($('#secondary_temp').jqxNumberInput('decimal')), |
|
4628 secondary_end_sg: parseFloat($('#secondary_end_sg').jqxNumberInput('decimal')), |
|
4629 secondary_end_date: $('#secondary_end_date').val(), |
|
4630 tertiary_temp: parseFloat($('#tertiary_temp').jqxNumberInput('decimal')), |
|
4631 package_date: $('#package_date').val(), |
|
4632 package_volume: parseFloat($('#package_volume').jqxNumberInput('decimal')), |
|
4633 package_infuse_amount: parseFloat($('#package_infuse_amount').jqxNumberInput('decimal')), |
|
4634 package_infuse_abv: parseFloat($('#package_infuse_abv').jqxNumberInput('decimal')), |
|
4635 package_infuse_notes: $('#package_infuse_notes').val(), |
|
4636 package_abv: parseFloat($('#package_abv').jqxNumberInput('decimal')), |
|
4637 package_ph: parseFloat($('#package_ph').jqxNumberInput('decimal')), |
|
4638 bottle_amount: parseFloat($('#bottle_amount').jqxNumberInput('decimal')), |
|
4639 bottle_carbonation: parseFloat($('#bottle_carbonation').jqxNumberInput('decimal')), |
|
4640 bottle_priming_water: parseFloat($('#bottle_priming_water').jqxNumberInput('decimal')), |
|
4641 bottle_priming_amount: parseFloat($('#bottle_priming_amount').jqxNumberInput('decimal')), |
|
4642 bottle_carbonation_temp: parseFloat($('#bottle_carbonation_temp').jqxNumberInput('decimal')), |
|
4643 keg_amount: parseFloat($('#keg_amount').jqxNumberInput('decimal')), |
|
4644 keg_carbonation: parseFloat($('#keg_carbonation').jqxNumberInput('decimal')), |
|
4645 keg_priming_water: parseFloat($('#keg_priming_water').jqxNumberInput('decimal')), |
|
4646 keg_priming_amount: parseFloat($('#keg_priming_amount').jqxNumberInput('decimal')), |
|
4647 keg_carbonation_temp: parseFloat($('#keg_carbonation_temp').jqxNumberInput('decimal')), |
|
4648 keg_forced_carb: dataRecord.keg_forced_carb, |
|
4649 keg_pressure: parseFloat($('#keg_pressure').jqxNumberInput('decimal')), |
|
4650 taste_notes: $('#taste_notes').val(), |
|
4651 taste_rate: parseFloat($('#taste_rate').jqxNumberInput('decimal')), |
|
4652 taste_date: $('#taste_date').val(), |
|
4653 taste_color: $('#taste_color').val(), |
|
4654 taste_transparency: $('#taste_transparency').val(), |
|
4655 taste_head: $('#taste_head').val(), |
|
4656 taste_aroma: $('#taste_aroma').val(), |
|
4657 taste_taste: $('#taste_taste').val(), |
|
4658 taste_mouthfeel: $('#taste_mouthfeel').val(), |
|
4659 taste_aftertaste: $('#taste_aftertaste').val(), |
|
4660 st_name: $('#st_name').val(), |
|
4661 st_letter: $('#st_letter').val(), |
|
4662 st_guide: $('#st_guide').val(), |
|
4663 st_type: dataRecord.st_type, |
|
4664 st_category: $('#st_category').val(), |
|
4665 st_category_number: $('#st_category_number').val(), |
|
4666 st_og_min: parseFloat($('#st_og_min').jqxNumberInput('decimal')), |
|
4667 st_og_max: parseFloat($('#st_og_max').jqxNumberInput('decimal')), |
|
4668 st_fg_min: parseFloat($('#st_fg_min').jqxNumberInput('decimal')), |
|
4669 st_fg_max: parseFloat($('#st_fg_max').jqxNumberInput('decimal')), |
|
4670 st_ibu_min: parseFloat($('#st_ibu_min').jqxNumberInput('decimal')), |
|
4671 st_ibu_max: parseFloat($('#st_ibu_max').jqxNumberInput('decimal')), |
|
4672 st_color_min: parseFloat($('#st_color_min').jqxNumberInput('decimal')), |
|
4673 st_color_max: parseFloat($('#st_color_max').jqxNumberInput('decimal')), |
|
4674 st_carb_min: parseFloat($('#st_carb_min').jqxNumberInput('decimal')), |
|
4675 st_carb_max: parseFloat($('#st_carb_max').jqxNumberInput('decimal')), |
|
4676 st_abv_min: parseFloat($('#st_abv_min').jqxNumberInput('decimal')), |
|
4677 st_abv_max: parseFloat($('#st_abv_max').jqxNumberInput('decimal')), |
|
4678 type: $('#type').val(), |
|
4679 batch_size: parseFloat($('#batch_size').jqxNumberInput('decimal')), |
|
4680 boil_size: parseFloat($('#boil_size').jqxNumberInput('decimal')), |
|
4681 boil_time: parseFloat($('#boil_time').jqxNumberInput('decimal')), |
|
4682 efficiency: parseFloat($('#efficiency').jqxNumberInput('decimal')), |
|
4683 est_og: parseFloat($('#est_og').jqxNumberInput('decimal')), |
|
4684 est_og3: parseFloat($('#est_og3').jqxNumberInput('decimal')), |
|
4685 est_fg: parseFloat($('#est_fg').jqxNumberInput('decimal')), |
|
4686 est_abv: parseFloat($('#est_abv').jqxNumberInput('decimal')), |
|
4687 est_color: parseFloat($('#est_color').jqxNumberInput('decimal')), |
|
4688 color_method: $('#color_method').val(), |
|
4689 est_ibu: parseFloat($('#est_ibu').jqxNumberInput('decimal')), |
|
4690 ibu_method: $('#ibu_method').val(), |
|
4691 est_carb: parseFloat($('#est_carb').jqxNumberInput('decimal')), |
|
4692 mash_name: $('#mash_name').val(), |
|
4693 mash_ph: parseFloat($('#mash_ph').jqxNumberInput('decimal')), |
|
4694 sparge_temp: parseFloat($('#sparge_temp').jqxNumberInput('decimal')), |
|
4695 sparge_ph: parseFloat($('#sparge_ph').jqxNumberInput('decimal')), |
|
4696 sparge_volume: parseFloat($('#sparge_volume').jqxNumberInput('decimal')), |
|
4697 sparge_source: $('#sparge_source').val(), |
|
4698 sparge_acid_type: $('#sparge_acid_type').val(), |
|
4699 sparge_acid_perc: parseFloat($('#sparge_acid_perc').jqxNumberInput('decimal')), |
|
4700 sparge_acid_amount: dataRecord.sparge_acid_amount, |
|
4701 calc_acid: dataRecord.calc_acid, |
|
4702 w1_name: $('#w1_name').val(), |
|
4703 w1_amount: parseFloat($('#w1_amount').jqxNumberInput('decimal')), |
|
4704 w1_calcium: parseFloat($('#w1_calcium').jqxNumberInput('decimal')), |
|
4705 w1_sulfate: parseFloat($('#w1_sulfate').jqxNumberInput('decimal')), |
|
4706 w1_chloride: parseFloat($('#w1_chloride').jqxNumberInput('decimal')), |
|
4707 w1_sodium: parseFloat($('#w1_sodium').jqxNumberInput('decimal')), |
|
4708 w1_magnesium: parseFloat($('#w1_magnesium').jqxNumberInput('decimal')), |
|
4709 w1_total_alkalinity: parseFloat($('#w1_total_alkalinity').jqxNumberInput('decimal')), |
|
4710 w1_ph: parseFloat($('#w1_ph').jqxNumberInput('decimal')), |
|
4711 w1_cost: dataRecord.w1_cost, |
|
4712 w2_name: $('#w2_name').val(), |
|
4713 w2_amount: parseFloat($('#w2_amount').jqxNumberInput('decimal')), |
|
4714 w2_calcium: parseFloat($('#w2_calcium').jqxNumberInput('decimal')), |
|
4715 w2_sulfate: parseFloat($('#w2_sulfate').jqxNumberInput('decimal')), |
|
4716 w2_chloride: parseFloat($('#w2_chloride').jqxNumberInput('decimal')), |
|
4717 w2_sodium: parseFloat($('#w2_sodium').jqxNumberInput('decimal')), |
|
4718 w2_magnesium: parseFloat($('#w2_magnesium').jqxNumberInput('decimal')), |
|
4719 w2_total_alkalinity: parseFloat($('#w2_total_alkalinity').jqxNumberInput('decimal')), |
|
4720 w2_ph: parseFloat($('#w2_ph').jqxNumberInput('decimal')), |
|
4721 w2_cost: dataRecord.w2_cost, |
|
4722 wg_amount: parseFloat($('#wg_amount').jqxNumberInput('decimal')), |
|
4723 wg_calcium: parseFloat($('#wg_calcium').jqxNumberInput('decimal')), |
|
4724 wg_sulfate: parseFloat($('#wg_sulfate').jqxNumberInput('decimal')), |
|
4725 wg_chloride: parseFloat($('#wg_chloride').jqxNumberInput('decimal')), |
|
4726 wg_sodium: parseFloat($('#wg_sodium').jqxNumberInput('decimal')), |
|
4727 wg_magnesium: parseFloat($('#wg_magnesium').jqxNumberInput('decimal')), |
|
4728 wg_total_alkalinity: parseFloat($('#wg_total_alkalinity').jqxNumberInput('decimal')), |
|
4729 wg_ph: parseFloat($('#wg_ph').jqxNumberInput('decimal')), |
|
4730 wb_calcium: parseFloat($('#wb_calcium').jqxNumberInput('decimal')), |
|
4731 wb_sulfate: parseFloat($('#wb_sulfate').jqxNumberInput('decimal')), |
|
4732 wb_chloride: parseFloat($('#wb_chloride').jqxNumberInput('decimal')), |
|
4733 wb_sodium: parseFloat($('#wb_sodium').jqxNumberInput('decimal')), |
|
4734 wb_magnesium: parseFloat($('#wb_magnesium').jqxNumberInput('decimal')), |
|
4735 wb_total_alkalinity: parseFloat($('#wb_total_alkalinity').jqxNumberInput('decimal')), |
|
4736 wb_ph: parseFloat($('#wb_ph').jqxNumberInput('decimal')), |
|
4737 wa_acid_name: parseInt($('#wa_acid_name').val()), |
|
4738 wa_acid_perc: parseFloat($('#wa_acid_perc').jqxNumberInput('decimal')), |
|
4739 wa_base_name: 0, |
|
4740 starter_enable: dataRecord.starter_enable, |
|
4741 starter_type: $('#starter_type').val(), |
|
4742 starter_sg: parseFloat($('#starter_sg').jqxNumberInput('decimal')), |
|
4743 starter_viability: parseFloat($('#starter_viability').jqxNumberInput('decimal')), |
|
4744 yeast_prod_date: $('#yeast_prod_date').val(), |
|
4745 yeast_pitchrate: parseFloat($('#yeast_pitchrate').jqxNumberInput('decimal')), |
|
4746 prop1_type: $('#prop1_type').val(), |
|
4747 prop1_volume: parseFloat($('#prop1_volume').jqxNumberInput('decimal')), |
|
4748 prop2_type: $('#prop2_type').val(), |
|
4749 prop2_volume: parseFloat($('#prop2_volume').jqxNumberInput('decimal')), |
|
4750 prop3_type: $('#prop3_type').val(), |
|
4751 prop3_volume: parseFloat($('#prop3_volume').jqxNumberInput('decimal')), |
|
4752 prop4_type: $('#prop4_type').val(), |
|
4753 prop4_volume: parseFloat($('#prop4_volume').jqxNumberInput('decimal')), |
|
4754 divide_type: dataRecord.divide_type, |
|
4755 divide_size: dataRecord.divide_size, |
|
4756 divide_factor: dataRecord.divide_factor, |
|
4757 divide_parts: dataRecord.divide_parts, |
|
4758 divide_part: dataRecord.divide_part, |
|
4759 fermentables: $('#fermentableGrid').jqxGrid('getrows'), |
|
4760 hops: $('#hopGrid').jqxGrid('getrows'), |
|
4761 miscs: $('#miscGrid').jqxGrid('getrows'), |
|
4762 yeasts: $('#yeastGrid').jqxGrid('getrows'), |
|
4763 mashs: $('#mashGrid').jqxGrid('getrows') |
|
4764 }, |
|
4765 data = 'update=true&' + $.param(row); |
|
4766 $.ajax({ |
|
4767 dataType: 'json', |
|
4768 url: url, |
|
4769 cache: false, |
|
4770 data: data, |
|
4771 async: false, |
|
4772 type: 'POST', |
|
4773 success: function(data) { |
|
4774 if (data.error) { |
|
4775 console.log('saveRecord(' + goback + ') error ' + data.msg); |
|
4776 alert('SQL fout: ' + data.msg); |
|
4777 } else { |
|
4778 console.log('saveRecord(' + goback + ') success'); |
|
4779 } |
|
4780 if (goback) |
|
4781 window.location.href = my_return; |
|
4782 else |
|
4783 window.location.href = |
|
4784 'prod_export.php?record=' + my_record + '&return=' + my_return + '&select=' + my_select + '&code=' + dataRecord.code + '&name=' + dataRecord.name + |
|
4785 '&stage=' + dataRecord.stage + '&split=' + dataRecord.divide_type; |
|
4786 }, |
|
4787 error: function(jqXHR, textStatus, errorThrown) { |
|
4788 console.log('saveRecord() ' + textStatus); |
|
4789 } |
|
4790 }); |
|
4791 }; |
|
4792 |
4405 |
4793 // initialize the input fields. |
4406 // initialize the input fields. |
4794 // Tab 1, Algemeen |
4407 // Tab 1, Algemeen |
4795 $('#name').jqxTooltip({ content: 'De naam voor dit product.' }); |
4408 $('#name').jqxTooltip({ content: 'De naam voor dit product.' }); |
4796 $('#code').jqxTooltip({ content: 'Product code nummer.' }); |
4409 $('#code').jqxTooltip({ content: 'Product code nummer.' }); |
4832 $('#st_carb_max').jqxTooltip({ content: 'Het maximum koolzuur volume voor deze bierstijl.'}); |
4445 $('#st_carb_max').jqxTooltip({ content: 'Het maximum koolzuur volume voor deze bierstijl.'}); |
4833 |
4446 |
4834 $('#name').jqxInput({ theme: theme, width: 640, height: 23 }); |
4447 $('#name').jqxInput({ theme: theme, width: 640, height: 23 }); |
4835 $('#code, #stage').jqxInput({ theme: theme, width: 100, height: 23 }); |
4448 $('#code, #stage').jqxInput({ theme: theme, width: 100, height: 23 }); |
4836 $('#locked').jqxCheckBox({ theme: theme, width: 120, height: 23, disabled: true }); |
4449 $('#locked').jqxCheckBox({ theme: theme, width: 120, height: 23, disabled: true }); |
4837 $('#locked').on('checked', function(event) { |
|
4838 if (dataRecord.stage >= 10) { |
|
4839 dataRecord.locked = 1; |
|
4840 dataRecord.stage = 11; |
|
4841 calcStage(); |
|
4842 } |
|
4843 }); |
|
4844 $('#locked').on('unchecked', function(event) { |
|
4845 if (dataRecord.stage >= 10) { |
|
4846 dataRecord.locked = 0; |
|
4847 dataRecord.stage = 10; |
|
4848 calcStage(); |
|
4849 } |
|
4850 }); |
|
4851 $('#birth,#divide_batch,#divide_type').jqxInput({ theme: theme, width: 120, height: 23 }); |
4450 $('#birth,#divide_batch,#divide_type').jqxInput({ theme: theme, width: 120, height: 23 }); |
4852 $('#notes').jqxInput({ theme: theme, width: 960, height: 100 }); |
4451 $('#notes').jqxInput({ theme: theme, width: 960, height: 100 }); |
4853 $('#type').jqxDropDownList({ |
4452 $('#type').jqxInput({ theme: theme, width: 180, height: 23 }); |
4854 theme: theme, |
4453 $('#efficiency').jqxNumberInput(Show1dec); |
4855 source: RecipeTypeAdapter, |
4454 $('#batch_size').jqxNumberInput(Show1dec); |
4856 valueMember: 'id', |
4455 $('#boil_time').jqxNumberInput(Show0dec); |
4857 displayMember: 'nl', |
4456 $('#boil_size').jqxNumberInput(Show2dec); |
4858 width: 180, |
|
4859 height: 23, |
|
4860 autoDropDownHeight: true |
|
4861 }); |
|
4862 $('#efficiency').jqxNumberInput(Perc1dec); |
|
4863 $('#batch_size').jqxNumberInput(Spin1dec); |
|
4864 $('#batch_size').jqxNumberInput({ min: 4 }); |
|
4865 $('#boil_time').jqxNumberInput(PosInt); |
|
4866 $('#boil_time').jqxNumberInput({ min: 0, max: 360 }); |
|
4867 $('#boil_size').jqxNumberInput({ inputMode: 'simple', theme: theme, width: 90, height: 23, decimalDigits: 2, readOnly: true }); |
|
4868 $('#st_guide,#st_name,#st_type,#st_category').jqxInput({ theme: theme, width: 250, height: 23 }); |
4457 $('#st_guide,#st_name,#st_type,#st_category').jqxInput({ theme: theme, width: 250, height: 23 }); |
4869 $('#est_og').jqxNumberInput(SGopts); |
4458 $('#est_og').jqxNumberInput(Show3dec); |
4870 $('#est_fg').jqxNumberInput(Show3dec); |
4459 $('#est_fg').jqxNumberInput(Show3dec); |
4871 $('#st_og_min,#st_og_max,#st_fg_min,#st_fg_max').jqxNumberInput({ inputMode: 'simple', theme: theme, width: 50, height: 23, decimalDigits: 3, readOnly: true }); |
4460 $('#st_og_min,#st_og_max,#st_fg_min,#st_fg_max').jqxNumberInput({ inputMode: 'simple', theme: theme, width: 50, height: 23, decimalDigits: 3, readOnly: true }); |
4872 $('#est_ibu,#est_color').jqxNumberInput(Show0dec); |
4461 $('#est_ibu,#est_color').jqxNumberInput(Show0dec); |
4873 $('#color_method').jqxDropDownList({ |
4462 $('#color_method').jqxInput({ theme: theme, width: 180, height: 23 }); |
4874 theme: theme, |
|
4875 source: ColorMethodAdapter, |
|
4876 valueMember: 'id', |
|
4877 displayMember: 'nl', |
|
4878 width: 180, |
|
4879 height: 23, |
|
4880 autoDropDownHeight: true |
|
4881 }); |
|
4882 $('#st_color_min,#st_color_max,#st_category_number,#st_ibu_min,#st_ibu_max,#kcal').jqxNumberInput(Smal0dec); |
4463 $('#st_color_min,#st_color_max,#st_category_number,#st_ibu_min,#st_ibu_max,#kcal').jqxNumberInput(Smal0dec); |
4883 $('#ibu_method').jqxDropDownList({ |
4464 $('#ibu_method').jqxInput({ theme: theme, width: 180, height: 23 }); |
4884 theme: theme, |
|
4885 source: IBUmethodAdapter, |
|
4886 valueMember: 'id', |
|
4887 displayMember: 'nl', |
|
4888 width: 180, |
|
4889 height: 23, |
|
4890 autoDropDownHeight: true, |
|
4891 dropDownVerticalAlignment: 'top' |
|
4892 }); |
|
4893 $('#est_abv,#st_abv_min,#st_abv_max,#est_carb,#st_carb_min,#st_carb_max').jqxNumberInput(Smal1dec); |
4465 $('#est_abv,#st_abv_min,#st_abv_max,#est_carb,#st_carb_min,#st_carb_max').jqxNumberInput(Smal1dec); |
4894 |
4466 |
4895 // Tab 2, Equipment |
4467 // Tab 2, Equipment |
4896 $('#eq_name').jqxTooltip({ content: 'De naam van deze brouw apparatuur.' }); |
4468 $('#eq_name').jqxTooltip({ content: 'De naam van deze brouw apparatuur.' }); |
4897 $('#eq_boil_size').jqxTooltip({ content: 'Normaal kook volume in liters' }); |
4469 $('#eq_boil_size').jqxTooltip({ content: 'Normaal kook volume in liters' }); |