www/js/prod_edit.js

changeset 322
167f3144210d
parent 318
882d4da1f236
child 331
8d7fad771dde
equal deleted inserted replaced
321:4116e6184609 322:167f3144210d
1851 $("#primary_max_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1851 $("#primary_max_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1852 $("#primary_end_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1852 $("#primary_end_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1853 $("#primary_end_sg").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1853 $("#primary_end_sg").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1854 $("#primary_end_brix").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1854 $("#primary_end_brix").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1855 $("#primary_end_date").jqxDateTimeInput({ disabled: true }); 1855 $("#primary_end_date").jqxDateTimeInput({ disabled: true });
1856 }
1857 if (dataRecord.stage < 6) { // Not yet packaged
1858 $("#inventory_reduced").jqxCheckBox({ disabled : true });
1859 } else {
1856 $("#secondary_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1860 $("#secondary_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1857 $("#secondary_end_date").jqxDateTimeInput({ disabled: true }); 1861 $("#secondary_end_date").jqxDateTimeInput({ disabled: true });
1858 $("#tertiary_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1862 $("#tertiary_temp").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1859 $("#fg").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1863 $("#fg").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1860 $("#final_brix").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1864 $("#final_brix").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1861 }
1862 if (dataRecord.stage < 6) { // Not yet packaged
1863 $("#inventory_reduced").jqxCheckBox({ disabled : true });
1864 } else {
1865 if ($('#inventory_reduced').jqxCheckBox('checked')) 1865 if ($('#inventory_reduced').jqxCheckBox('checked'))
1866 $("#inventory_reduced").jqxCheckBox({ disabled : true }); 1866 $("#inventory_reduced").jqxCheckBox({ disabled : true });
1867 $("#package_date").jqxDateTimeInput({ disabled: true }); 1867 $("#package_date").jqxDateTimeInput({ disabled: true });
1868 $("#bottle_amount").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1868 $("#bottle_amount").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1869 $("#keg_amount").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1869 $("#keg_amount").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });

mercurial