www/js/prod_export.js

changeset 494
af28ebe4a779
parent 398
7e8f1a7ddeeb
child 497
0fe366d953ab
equal deleted inserted replaced
491:8c4f08445624 494:af28ebe4a779
59 }); 59 });
60 60
61 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); 61 $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true });
62 $('#Start').click(function () { 62 $('#Start').click(function () {
63 if (choice == 1) { 63 if (choice == 1) {
64 var url="prod_beerxml.php?record=" + my_record; 64 window.open('prod_beerxml.php?record=' + my_record);
65 window.open(url);
66 } else if (choice == 2) { 65 } else if (choice == 2) {
67 var url="prod_duplicate.php?record=" + my_record; 66 window.open('prod_duplicate.php?record=' + my_record);
68 window.open(url);
69 } else if (choice == 3) { 67 } else if (choice == 3) {
70 var url="prod_torecipe.php?record=" + my_record; 68 window.open('prod_torecipe.php?record=' + my_record);
71 window.open(url);
72 } else if (choice == 4) { 69 } else if (choice == 4) {
73 var url="prod_print.php?record=" + my_record; 70 window.open('prod_print.php?record=' + my_record);
74 window.open(url);
75 } else if (choice == 5) { 71 } else if (choice == 5) {
76 var url="prod_checklist.php?record=" + my_record; 72 window.open('prod_checklist.php?record=' + my_record);
77 window.open(url);
78 } else if (choice == 6) { 73 } else if (choice == 6) {
79 var url="prod_forum.php?record=" + my_record; 74 window.open('prod_forum.php?record=' + my_record);
80 window.open(url);
81 } 75 }
82 // Return to the original product 76 // Return to the original product
83 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; 77 window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return;
84 }); 78 });
85 79

mercurial