www/js/prod_export.js

changeset 341
9c4bc199be9e
parent 302
d0f7b4ab000f
child 398
7e8f1a7ddeeb
--- a/www/js/prod_export.js	Thu Apr 18 21:26:06 2019 +0200
+++ b/www/js/prod_export.js	Tue Apr 23 19:53:26 2019 +0200
@@ -30,6 +30,8 @@
 	$("#jqxRadioButton1").jqxRadioButton({ theme: theme, width: 250, height: 23 });
 	$("#jqxRadioButton2").jqxRadioButton({ theme: theme, width: 250, height: 23 });
 	$("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 });
+	$("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 });
+	$("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 });
 	$('#jqxRadioButton1').on('checked', function (event) {
 	       	$('#Start').jqxButton({ disabled: false });
 		choice = 1;
@@ -42,6 +44,14 @@
 		$('#Start').jqxButton({ disabled: false });
 		choice = 3;
 	});
+	$('#jqxRadioButton4').on('checked', function (event) {
+                $('#Start').jqxButton({ disabled: false });
+                choice = 4;
+        });
+	$('#jqxRadioButton5').on('checked', function (event) {
+                $('#Start').jqxButton({ disabled: false });
+                choice = 5;
+        });
 
 	$('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true });
 	$('#Start').click(function () {
@@ -54,7 +64,13 @@
 		} else if (choice == 3) {
 			var url="prod_torecipe.php?record=" + my_record;
 			window.open(url);
-		}
+		} else if (choice == 4) {
+			var url="prod_print.php?record=" + my_record;
+			window.open(url);
+		} else if (choice == 5) {
+                        var url="prod_forum.php?record=" + my_record;
+                        window.open(url);
+                }
 		// Return to the original product
 		window.location.href = my_return + "?record=" + my_record;
 	});

mercurial