21 *****************************************************************************/ |
21 *****************************************************************************/ |
22 |
22 |
23 |
23 |
24 $(document).ready(function () { |
24 $(document).ready(function () { |
25 |
25 |
|
26 var choice = 0; |
26 |
27 |
|
28 $("#name").html(my_name); |
|
29 $("#jqxRadioButton1").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 }); |
|
32 $('#jqxRadioButton1').on('checked', function (event) { |
|
33 $('#Start').jqxButton({ disabled: false }); |
|
34 choice = 1; |
|
35 }); |
|
36 $('#jqxRadioButton2').on('checked', function (event) { |
|
37 $('#Start').jqxButton({ disabled: false }); |
|
38 choice = 2; |
|
39 }); |
|
40 $('#jqxRadioButton3').on('checked', function (event) { |
|
41 $('#Start').jqxButton({ disabled: false }); |
|
42 choice = 3; |
|
43 }); |
|
44 |
|
45 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); |
|
46 $('#Start').click(function () { |
|
47 if (choice == 1) { |
|
48 var url="rec_beerxml.php?record=" + my_record; |
|
49 window.open(url); |
|
50 } else if (choice == 2) { |
|
51 var url="rec_duplicate.php?record=" + my_record; |
|
52 window.open(url); |
|
53 } else if (choice == 3) { |
|
54 var url="rec_toproduct.php?record=" + my_record; |
|
55 window.open(url); |
|
56 } |
|
57 // Return to the original product |
|
58 window.location.href = my_return + "?record=" + my_record; |
|
59 }); |
27 }); |
60 }); |