www/js/prod_export.js

changeset 494
af28ebe4a779
parent 398
7e8f1a7ddeeb
child 497
0fe366d953ab
--- a/www/js/prod_export.js	Fri Sep 13 23:02:38 2019 +0200
+++ b/www/js/prod_export.js	Sat Sep 14 19:04:29 2019 +0200
@@ -61,23 +61,17 @@
 	$('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true });
 	$('#Start').click(function () {
 		if (choice == 1) {
-			var url="prod_beerxml.php?record=" + my_record;
-			window.open(url);
+			window.open('prod_beerxml.php?record=' + my_record);
 		} else if (choice == 2) {
-			var url="prod_duplicate.php?record=" + my_record;
-			window.open(url);
+			window.open('prod_duplicate.php?record=' + my_record);
 		} else if (choice == 3) {
-			var url="prod_torecipe.php?record=" + my_record;
-			window.open(url);
+			window.open('prod_torecipe.php?record=' + my_record);
 		} else if (choice == 4) {
-			var url="prod_print.php?record=" + my_record;
-			window.open(url);
+			window.open('prod_print.php?record=' + my_record);
 		} else if (choice == 5) {
-			var url="prod_checklist.php?record=" + my_record;
-			window.open(url);
+			window.open('prod_checklist.php?record=' + my_record);
 		} else if (choice == 6) {
-                        var url="prod_forum.php?record=" + my_record;
-                        window.open(url);
+                        window.open('prod_forum.php?record=' + my_record);
                 }
 		// Return to the original product
 		window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return;

mercurial