www/js/prod_export.js

changeset 498
10c6eeee60ce
parent 497
0fe366d953ab
child 525
8bbc5730aaa8
equal deleted inserted replaced
497:0fe366d953ab 498:10c6eeee60ce
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 }); 36 $("#jqxRadioButton7").jqxRadioButton({ theme: theme, width: 250, height: 23 });
37 if (my_split != 0) { 37 if ((my_split != 0) || (my_stage >= 6)) {
38 $("#jqxRadioButton3").jqxRadioButton({ disabled: true }); 38 $("#jqxRadioButton3").jqxRadioButton({ disabled: true });
39 document.getElementById("pmpt3").style.color = "red";
39 } 40 }
40 41
41 $('#jqxRadioButton1').on('checked', function (event) { 42 $('#jqxRadioButton1').on('checked', function (event) {
42 $('#Start').jqxButton({ disabled: false }); 43 $('#Start').jqxButton({ disabled: false });
43 choice = 1; 44 choice = 1;
72 if (choice == 1) { 73 if (choice == 1) {
73 window.open('prod_beerxml.php?record=' + my_record); 74 window.open('prod_beerxml.php?record=' + my_record);
74 } else if (choice == 2) { 75 } else if (choice == 2) {
75 window.open('prod_duplicate.php?record=' + my_record); 76 window.open('prod_duplicate.php?record=' + my_record);
76 } else if (choice == 3) { 77 } else if (choice == 3) {
77 window.open('prod_divide.php?record=' + my_record); 78 window.location.href = 'prod_divide.php?record=' + my_record + '&return=' + my_return;
78 } else if (choice == 4) { 79 } else if (choice == 4) {
79 window.open('prod_torecipe.php?record=' + my_record); 80 window.open('prod_torecipe.php?record=' + my_record);
80 } else if (choice == 5) { 81 } else if (choice == 5) {
81 window.open('prod_print.php?record=' + my_record); 82 window.open('prod_print.php?record=' + my_record);
82 } else if (choice == 6) { 83 } else if (choice == 6) {
83 window.open('prod_checklist.php?record=' + my_record); 84 window.open('prod_checklist.php?record=' + my_record);
84 } else if (choice == 7) { 85 } else if (choice == 7) {
85 window.open('prod_forum.php?record=' + my_record); 86 window.open('prod_forum.php?record=' + my_record);
86 } 87 }
87 // Return to the original product 88 // Return to the original product
88 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;
89 }); 91 });
90 92
91 }); 93 });

mercurial