www/js/prod_export.js

branch
stable
changeset 520
d25a1b160dba
parent 498
10c6eeee60ce
child 525
8bbc5730aaa8
equal deleted inserted replaced
493:9e43b216ccd3 520:d25a1b160dba
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) || (my_stage >= 6)) {
38 $("#jqxRadioButton3").jqxRadioButton({ disabled: true });
39 document.getElementById("pmpt3").style.color = "red";
40 }
41
36 $('#jqxRadioButton1').on('checked', function (event) { 42 $('#jqxRadioButton1').on('checked', function (event) {
37 $('#Start').jqxButton({ disabled: false }); 43 $('#Start').jqxButton({ disabled: false });
38 choice = 1; 44 choice = 1;
39 }); 45 });
40 $('#jqxRadioButton2').on('checked', function (event) { 46 $('#jqxRadioButton2').on('checked', function (event) {
41 $('#Start').jqxButton({ disabled: false }); 47 $('#Start').jqxButton({ disabled: false });
42 choice = 2; 48 choice = 2;
43 }); 49 });
44 $('#jqxRadioButton3').on('checked', function (event) { 50 $('#jqxRadioButton3').on('checked', function (event) {
51 $('#Start').jqxButton({ disabled: false });
52 choice = 3;
53 });
54 $('#jqxRadioButton4').on('checked', function (event) {
45 $('#Start').jqxButton({ disabled: false }); 55 $('#Start').jqxButton({ disabled: false });
46 choice = 3; 56 choice = 4;
47 }); 57 });
48 $('#jqxRadioButton4').on('checked', function (event) {
49 $('#Start').jqxButton({ disabled: false });
50 choice = 4;
51 });
52 $('#jqxRadioButton5').on('checked', function (event) { 58 $('#jqxRadioButton5').on('checked', function (event) {
53 $('#Start').jqxButton({ disabled: false }); 59 $('#Start').jqxButton({ disabled: false });
54 choice = 5; 60 choice = 5;
55 }); 61 });
56 $('#jqxRadioButton6').on('checked', function (event) { 62 $('#jqxRadioButton6').on('checked', function (event) {
63 $('#Start').jqxButton({ disabled: false });
64 choice = 6;
65 });
66 $('#jqxRadioButton7').on('checked', function (event) {
57 $('#Start').jqxButton({ disabled: false }); 67 $('#Start').jqxButton({ disabled: false });
58 choice = 6; 68 choice = 7;
59 }); 69 });
60 70
61 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); 71 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true });
62 $('#Start').click(function () { 72 $('#Start').click(function () {
63 if (choice == 1) { 73 if (choice == 1) {
64 var url="prod_beerxml.php?record=" + my_record; 74 window.open('prod_beerxml.php?record=' + my_record);
65 window.open(url);
66 } else if (choice == 2) { 75 } else if (choice == 2) {
67 var url="prod_duplicate.php?record=" + my_record; 76 window.open('prod_duplicate.php?record=' + my_record);
68 window.open(url);
69 } else if (choice == 3) { 77 } else if (choice == 3) {
70 var url="prod_torecipe.php?record=" + my_record; 78 window.location.href = 'prod_divide.php?record=' + my_record + '&return=' + my_return;
71 window.open(url);
72 } else if (choice == 4) { 79 } else if (choice == 4) {
73 var url="prod_print.php?record=" + my_record; 80 window.open('prod_torecipe.php?record=' + my_record);
74 window.open(url);
75 } else if (choice == 5) { 81 } else if (choice == 5) {
76 var url="prod_checklist.php?record=" + my_record; 82 window.open('prod_print.php?record=' + my_record);
77 window.open(url);
78 } else if (choice == 6) { 83 } else if (choice == 6) {
79 var url="prod_forum.php?record=" + my_record; 84 window.open('prod_checklist.php?record=' + my_record);
80 window.open(url); 85 } else if (choice == 7) {
86 window.open('prod_forum.php?record=' + my_record);
81 } 87 }
82 // Return to the original product 88 // Return to the original product
83 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; 89 if (choice != 3)
90 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return;
84 }); 91 });
85 92
86 }); 93 });

mercurial