# HG changeset patch # User Michiel Broek # Date 1618065365 -7200 # Node ID 08f91a68e757e0cd7e437f2a968e6991e783a360 # Parent 872a3635e4ef4121d46b3a000ad820e8568adcf3 Show or suppress the dry yeast specific data in the inventory editor. diff -r 872a3635e4ef -r 08f91a68e757 www/inv_yeasts.php --- a/www/inv_yeasts.php Sat Apr 10 14:46:06 2021 +0200 +++ b/www/inv_yeasts.php Sat Apr 10 16:36:05 2021 +0200 @@ -29,16 +29,20 @@ Type:
- Ent van g/hl: - + Ent van g/hl: + + + Min temperatuur °C:
Gist vorm:
- Ent tot g/hl: - + Ent tot g/hl: + + + Max temperatuur °C:
diff -r 872a3635e4ef -r 08f91a68e757 www/js/inv_yeasts.js --- a/www/js/inv_yeasts.js Sat Apr 10 14:46:06 2021 +0200 +++ b/www/js/inv_yeasts.js Sat Apr 10 16:36:05 2021 +0200 @@ -396,6 +396,13 @@ $('#sg_hi').val(parseFloat(dataRecord.sg_hi)); $('#pitch_hi').val(dataRecord.gr_hl_hi + '@' + parseFloat(dataRecord.sg_hi).toFixed(3)); $('#short_desc').val(dataRecord.short_desc); + if (dataRecord.form == 'Droog') { + $('.yeast_wet').hide(); + $('.yeast_dry').show(); + } else { + $('.yeast_wet').show(); + $('.yeast_dry').hide(); + } calcTotal(); // show the popup window. $('#popupWindow').jqxWindow('open'); @@ -419,6 +426,13 @@ $('#form').on('select', function(event) { dataRecord.form = $('#form').val(); calcTotal(); + if (dataRecord.form == 'Droog') { + $('.yeast_wet').hide(); + $('.yeast_dry').show(); + } else { + $('.yeast_wet').show(); + $('.yeast_dry').hide(); + } }); // initialize the popup window and buttons.