31 $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
31 $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
32 $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
32 $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
33 $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
33 $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
34 $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
34 $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
35 $("#jqxRadioButton6").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
35 $("#jqxRadioButton6").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
|
36 $("#jqxRadioButton7").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
|
37 if (my_split != 0) { |
|
38 $("#jqxRadioButton3").jqxRadioButton({ disabled: true }); |
|
39 } |
|
40 |
36 $('#jqxRadioButton1').on('checked', function (event) { |
41 $('#jqxRadioButton1').on('checked', function (event) { |
37 $('#Start').jqxButton({ disabled: false }); |
42 $('#Start').jqxButton({ disabled: false }); |
38 choice = 1; |
43 choice = 1; |
39 }); |
44 }); |
40 $('#jqxRadioButton2').on('checked', function (event) { |
45 $('#jqxRadioButton2').on('checked', function (event) { |
41 $('#Start').jqxButton({ disabled: false }); |
46 $('#Start').jqxButton({ disabled: false }); |
42 choice = 2; |
47 choice = 2; |
43 }); |
48 }); |
44 $('#jqxRadioButton3').on('checked', function (event) { |
49 $('#jqxRadioButton3').on('checked', function (event) { |
|
50 $('#Start').jqxButton({ disabled: false }); |
|
51 choice = 3; |
|
52 }); |
|
53 $('#jqxRadioButton4').on('checked', function (event) { |
45 $('#Start').jqxButton({ disabled: false }); |
54 $('#Start').jqxButton({ disabled: false }); |
46 choice = 3; |
55 choice = 4; |
47 }); |
56 }); |
48 $('#jqxRadioButton4').on('checked', function (event) { |
|
49 $('#Start').jqxButton({ disabled: false }); |
|
50 choice = 4; |
|
51 }); |
|
52 $('#jqxRadioButton5').on('checked', function (event) { |
57 $('#jqxRadioButton5').on('checked', function (event) { |
53 $('#Start').jqxButton({ disabled: false }); |
58 $('#Start').jqxButton({ disabled: false }); |
54 choice = 5; |
59 choice = 5; |
55 }); |
60 }); |
56 $('#jqxRadioButton6').on('checked', function (event) { |
61 $('#jqxRadioButton6').on('checked', function (event) { |
|
62 $('#Start').jqxButton({ disabled: false }); |
|
63 choice = 6; |
|
64 }); |
|
65 $('#jqxRadioButton7').on('checked', function (event) { |
57 $('#Start').jqxButton({ disabled: false }); |
66 $('#Start').jqxButton({ disabled: false }); |
58 choice = 6; |
67 choice = 7; |
59 }); |
68 }); |
60 |
69 |
61 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
70 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
62 $('#Start').click(function () { |
71 $('#Start').click(function () { |
63 if (choice == 1) { |
72 if (choice == 1) { |
64 window.open('prod_beerxml.php?record=' + my_record); |
73 window.open('prod_beerxml.php?record=' + my_record); |
65 } else if (choice == 2) { |
74 } else if (choice == 2) { |
66 window.open('prod_duplicate.php?record=' + my_record); |
75 window.open('prod_duplicate.php?record=' + my_record); |
67 } else if (choice == 3) { |
76 } else if (choice == 3) { |
|
77 window.open('prod_divide.php?record=' + my_record); |
|
78 } else if (choice == 4) { |
68 window.open('prod_torecipe.php?record=' + my_record); |
79 window.open('prod_torecipe.php?record=' + my_record); |
69 } else if (choice == 4) { |
80 } else if (choice == 5) { |
70 window.open('prod_print.php?record=' + my_record); |
81 window.open('prod_print.php?record=' + my_record); |
71 } else if (choice == 5) { |
82 } else if (choice == 6) { |
72 window.open('prod_checklist.php?record=' + my_record); |
83 window.open('prod_checklist.php?record=' + my_record); |
73 } else if (choice == 6) { |
84 } else if (choice == 7) { |
74 window.open('prod_forum.php?record=' + my_record); |
85 window.open('prod_forum.php?record=' + my_record); |
75 } |
86 } |
76 // Return to the original product |
87 // Return to the original product |
77 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; |
88 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; |
78 }); |
89 }); |