53 }); |
53 }); |
54 |
54 |
55 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
55 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
56 $('#Start').click(function () { |
56 $('#Start').click(function () { |
57 if (choice == 1) { |
57 if (choice == 1) { |
58 var url="rec_beerxml.php?record=" + my_record; |
58 window.open('rec_beerxml.php?record=' + my_record); |
59 window.open(url); |
|
60 } else if (choice == 2) { |
59 } else if (choice == 2) { |
61 var url="rec_duplicate.php?record=" + my_record; |
60 window.open('rec_duplicate.php?record=' + my_record); |
62 window.open(url); |
|
63 } else if (choice == 3) { |
61 } else if (choice == 3) { |
64 var url="rec_toproduct.php?record=" + my_record; |
62 window.open('rec_toproduct.php?record=' + my_record); |
65 window.open(url); |
|
66 } else if (choice == 4) { |
63 } else if (choice == 4) { |
67 var url="rec_print.php?record=" + my_record; |
64 window.open('rec_print.php?record=' + my_record); |
68 window.open(url); |
|
69 } else if (choice == 5) { |
65 } else if (choice == 5) { |
70 var url="rec_forum.php?record=" + my_record; |
66 window.open('rec_forum.php?record=' + my_record); |
71 window.open(url); |
|
72 } |
67 } |
73 // Return to the original recipe |
68 // Return to the original recipe |
74 window.location.href = "rec_edit.php?record=" + my_record + "&return=" + my_return; |
69 window.location.href = "rec_edit.php?record=" + my_record + "&return=" + my_return; |
75 }); |
70 }); |
76 }); |
71 }); |