www/js/prod_edit.js

changeset 315
0df8d2db55fb
parent 311
f6fafccd8a6d
child 316
82c3bb9a40c2
equal deleted inserted replaced
314:f943efa07d9f 315:0df8d2db55fb
1878 $('#jqxTabs').jqxTabs('disableAt', 11); // Tasting tab 1878 $('#jqxTabs').jqxTabs('disableAt', 11); // Tasting tab
1879 } else { 1879 } else {
1880 $('#jqxTabs').jqxTabs('enableAt', 11); 1880 $('#jqxTabs').jqxTabs('enableAt', 11);
1881 } 1881 }
1882 1882
1883 if (dataRecord.stage > 9) { // Tasted 1883 if (dataRecord.stage == 11) { // Locked
1884 $("#taste_date").jqxDateTimeInput({ disabled: true }); 1884 $("#taste_date").jqxDateTimeInput({ disabled: true });
1885 $("#taste_rate").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); 1885 $("#taste_rate").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 });
1886 $("#taste_color").jqxInput({ disabled: true }); 1886 $("#taste_color").jqxInput({ disabled: true });
1887 $("#taste_transparency").jqxInput({ disabled: true }); 1887 $("#taste_transparency").jqxInput({ disabled: true });
1888 $("#taste_head").jqxInput({ disabled: true }); 1888 $("#taste_head").jqxInput({ disabled: true });
1889 $("#taste_aroma").jqxInput({ disabled: true }); 1889 $("#taste_aroma").jqxInput({ disabled: true });
1890 $("#taste_taste").jqxInput({ disabled: true }); 1890 $("#taste_taste").jqxInput({ disabled: true });
1891 $("#taste_aftertaste").jqxInput({ disabled: true }); 1891 $("#taste_aftertaste").jqxInput({ disabled: true });
1892 $("#taste_mouthfeel").jqxInput({ disabled: true }); 1892 $("#taste_mouthfeel").jqxInput({ disabled: true });
1893 $("#taste_notes").jqxInput({ disabled: true }); 1893 $("#taste_notes").jqxInput({ disabled: true });
1894 }
1895
1896 if (dataRecord.stage == 11) { // Locked
1897 $("#notes").jqxInput({ disabled: true }); 1894 $("#notes").jqxInput({ disabled: true });
1898 } else { 1895 } else {
1899 $("#notes").jqxInput({ disabled: false }); 1896 $("#notes").jqxInput({ disabled: false });
1900 } 1897 }
1901 } 1898 }

mercurial