# HG changeset patch # User Michiel Broek # Date 1551696033 -3600 # Node ID 0df8d2db55fbb056b061e64b7044082d08b9d5bb # Parent f943efa07d9fc5314f6b11f7b6eb80891c54a6ec Disable taste entries only after the product is locked. diff -r f943efa07d9f -r 0df8d2db55fb www/js/prod_edit.js --- a/www/js/prod_edit.js Mon Mar 04 11:05:26 2019 +0100 +++ b/www/js/prod_edit.js Mon Mar 04 11:40:33 2019 +0100 @@ -1880,7 +1880,7 @@ $('#jqxTabs').jqxTabs('enableAt', 11); } - if (dataRecord.stage > 9) { // Tasted + if (dataRecord.stage == 11) { // Locked $("#taste_date").jqxDateTimeInput({ disabled: true }); $("#taste_rate").jqxNumberInput({ spinButtons: false, readOnly: true, width: 90 }); $("#taste_color").jqxInput({ disabled: true }); @@ -1891,9 +1891,6 @@ $("#taste_aftertaste").jqxInput({ disabled: true }); $("#taste_mouthfeel").jqxInput({ disabled: true }); $("#taste_notes").jqxInput({ disabled: true }); - } - - if (dataRecord.stage == 11) { // Locked $("#notes").jqxInput({ disabled: true }); } else { $("#notes").jqxInput({ disabled: false });