www/js/prod_export.js

changeset 398
7e8f1a7ddeeb
parent 341
9c4bc199be9e
child 494
af28ebe4a779
--- a/www/js/prod_export.js	Tue Jun 04 19:51:40 2019 +0200
+++ b/www/js/prod_export.js	Wed Jun 05 15:12:14 2019 +0200
@@ -32,6 +32,7 @@
 	$("#jqxRadioButton3").jqxRadioButton({ theme: theme, width: 250, height: 23 });
 	$("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 });
 	$("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 });
+	$("#jqxRadioButton6").jqxRadioButton({ theme: theme, width: 250, height: 23 });
 	$('#jqxRadioButton1').on('checked', function (event) {
 	       	$('#Start').jqxButton({ disabled: false });
 		choice = 1;
@@ -52,6 +53,10 @@
                 $('#Start').jqxButton({ disabled: false });
                 choice = 5;
         });
+	$('#jqxRadioButton6').on('checked', function (event) {
+		$('#Start').jqxButton({ disabled: false });
+		choice = 6;
+	});
 
 	$('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true });
 	$('#Start').click(function () {
@@ -68,11 +73,14 @@
 			var url="prod_print.php?record=" + my_record;
 			window.open(url);
 		} else if (choice == 5) {
+			var url="prod_checklist.php?record=" + my_record;
+			window.open(url);
+		} else if (choice == 6) {
                         var url="prod_forum.php?record=" + my_record;
                         window.open(url);
                 }
 		// Return to the original product
-		window.location.href = my_return + "?record=" + my_record;
+		window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return;
 	});
 
 });

mercurial