Fri, 18 Oct 2019 13:06:12 +0200
The default starter SG changed to 1.037. Added several tooltips on the yeast tab.
/***************************************************************************** * Copyright (C) 2019 * * Michiel Broek <mbroek at mbse dot eu> * * This file is part of BMS * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2, or (at your option) any * later version. * * BrewCloud is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ThermFerm; see the file COPYING. If not, write to the Free * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *****************************************************************************/ $(document).ready(function () { var choice = 0; $("#name").html(my_name); $("#code").html(my_code); $("#jqxRadioButton1").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton6").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton7").jqxRadioButton({ theme: theme, width: 250, height: 23 }); if ((my_split != 0) || (my_stage >= 6)) { $("#jqxRadioButton3").jqxRadioButton({ disabled: true }); document.getElementById("pmpt3").style.color = "red"; } $('#jqxRadioButton1').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 1; }); $('#jqxRadioButton2').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 2; }); $('#jqxRadioButton3').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 3; }); $('#jqxRadioButton4').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 4; }); $('#jqxRadioButton5').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 5; }); $('#jqxRadioButton6').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 6; }); $('#jqxRadioButton7').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 7; }); $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); $('#Start').click(function () { if (choice == 1) { window.open('prod_beerxml.php?record=' + my_record); } else if (choice == 2) { window.open('prod_duplicate.php?record=' + my_record); } else if (choice == 3) { window.location.href = 'prod_divide.php?record=' + my_record + '&return=' + my_return; } else if (choice == 4) { window.open('prod_torecipe.php?record=' + my_record); } else if (choice == 5) { window.open('prod_print.php?record=' + my_record); } else if (choice == 6) { window.open('prod_checklist.php?record=' + my_record); } else if (choice == 7) { window.open('prod_forum.php?record=' + my_record); } // Return to the original product if (choice != 3) window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; }); });