27 |
27 |
28 $("#name").html(my_name); |
28 $("#name").html(my_name); |
29 $("#jqxRadioButton1").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
29 $("#jqxRadioButton1").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
30 $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
30 $("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
31 $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
31 $("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
|
32 $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
|
33 $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); |
32 $('#jqxRadioButton1').on('checked', function (event) { |
34 $('#jqxRadioButton1').on('checked', function (event) { |
33 $('#Start').jqxButton({ disabled: false }); |
35 $('#Start').jqxButton({ disabled: false }); |
34 choice = 1; |
36 choice = 1; |
35 }); |
37 }); |
36 $('#jqxRadioButton2').on('checked', function (event) { |
38 $('#jqxRadioButton2').on('checked', function (event) { |
39 }); |
41 }); |
40 $('#jqxRadioButton3').on('checked', function (event) { |
42 $('#jqxRadioButton3').on('checked', function (event) { |
41 $('#Start').jqxButton({ disabled: false }); |
43 $('#Start').jqxButton({ disabled: false }); |
42 choice = 3; |
44 choice = 3; |
43 }); |
45 }); |
|
46 $('#jqxRadioButton4').on('checked', function (event) { |
|
47 $('#Start').jqxButton({ disabled: false }); |
|
48 choice = 4; |
|
49 }); |
|
50 $('#jqxRadioButton5').on('checked', function (event) { |
|
51 $('#Start').jqxButton({ disabled: false }); |
|
52 choice = 5; |
|
53 }); |
44 |
54 |
45 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
55 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
46 $('#Start').click(function () { |
56 $('#Start').click(function () { |
47 if (choice == 1) { |
57 if (choice == 1) { |
48 var url="rec_beerxml.php?record=" + my_record; |
58 var url="rec_beerxml.php?record=" + my_record; |
51 var url="rec_duplicate.php?record=" + my_record; |
61 var url="rec_duplicate.php?record=" + my_record; |
52 window.open(url); |
62 window.open(url); |
53 } else if (choice == 3) { |
63 } else if (choice == 3) { |
54 var url="rec_toproduct.php?record=" + my_record; |
64 var url="rec_toproduct.php?record=" + my_record; |
55 window.open(url); |
65 window.open(url); |
56 } |
66 } else if (choice == 4) { |
57 // Return to the original product |
67 var url="rec_print.php?record=" + my_record; |
58 window.location.href = my_return + "?record=" + my_record; |
68 window.open(url); |
|
69 } else if (choice == 5) { |
|
70 var url="rec_forum.php?record=" + my_record; |
|
71 window.open(url); |
|
72 } |
|
73 // Return to the original recipe |
|
74 window.location.href = "rec_edit.php?record=" + my_record + "&return=" + my_return; |
59 }); |
75 }); |
60 }); |
76 }); |