1823 } else { |
1823 } else { |
1824 $('#jqxTabs').jqxTabs('enableAt', 11); |
1824 $('#jqxTabs').jqxTabs('enableAt', 11); |
1825 } |
1825 } |
1826 } |
1826 } |
1827 |
1827 |
1828 function calcInit () { |
1828 function showStarter() { |
1829 console.log("calcInit()"); |
1829 |
1830 |
1830 if (dataRecord.starter_enable) { |
1831 calcMashEfficiency(); |
|
1832 calcEfficiencyBeforeBoil(); |
|
1833 calcEfficiencyAfterBoil(); |
|
1834 |
|
1835 $("#starter_enable").on('checked', function (event) { |
|
1836 dataRecord.starter_enable = 1; |
|
1837 $("#propagator").show(); |
1831 $("#propagator").show(); |
1838 $("#starter_type").jqxDropDownList( {disabled: false }); |
1832 $("#starter_type").jqxDropDownList( {disabled: false }); |
1839 $("#starter_try").jqxButton({ disabled: false }); |
1833 $("#starter_try").jqxButton({ disabled: false }); |
1840 $("#starter_sg").jqxNumberInput({ spinButtons: true, readOnly: false, width: 110 }); |
1834 $("#starter_sg").jqxNumberInput({ spinButtons: true, readOnly: false, width: 110 }); |
|
1835 } else { |
|
1836 $("#propagator").hide(); |
|
1837 $("#starter_type").jqxDropDownList( {disabled: true }); |
|
1838 $("#starter_try").jqxButton({ disabled: true }); |
|
1839 $("#starter_sg").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
|
1840 } |
|
1841 } |
|
1842 |
|
1843 function calcInit () { |
|
1844 console.log("calcInit()"); |
|
1845 |
|
1846 calcMashEfficiency(); |
|
1847 calcEfficiencyBeforeBoil(); |
|
1848 calcEfficiencyAfterBoil(); |
|
1849 |
|
1850 $("#starter_enable").on('checked', function (event) { |
|
1851 dataRecord.starter_enable = 1; |
|
1852 showStarter(); |
1841 calcYeast(); |
1853 calcYeast(); |
1842 }); |
1854 }); |
1843 $("#starter_enable").on('unchecked', function (event) { |
1855 $("#starter_enable").on('unchecked', function (event) { |
1844 dataRecord.starter_enable = 0; |
1856 dataRecord.starter_enable = 0; |
1845 $("#propagator").hide(); |
1857 showStarter(); |
1846 $("#starter_type").jqxDropDownList( {disabled: true }); |
|
1847 $("#starter_try").jqxButton({ disabled: true }); |
|
1848 $("#starter_sg").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); |
|
1849 }); |
1858 }); |
1850 $("#starter_try").click(function () { |
1859 $("#starter_try").click(function () { |
1851 $("#prop1_volume").val(0); |
1860 $("#prop1_volume").val(0); |
1852 $("#prop2_volume").val(0); |
1861 $("#prop2_volume").val(0); |
1853 $("#prop3_volume").val(0); |
1862 $("#prop3_volume").val(0); |