www/js/rec_export.js

changeset 494
af28ebe4a779
parent 359
98354ef399cd
child 524
55a246085522
--- a/www/js/rec_export.js	Fri Sep 13 23:02:38 2019 +0200
+++ b/www/js/rec_export.js	Sat Sep 14 19:04:29 2019 +0200
@@ -55,20 +55,15 @@
 	$('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true });
 	$('#Start').click(function () {
 		if (choice == 1) {
-			var url="rec_beerxml.php?record=" + my_record;
-			window.open(url);
+			window.open('rec_beerxml.php?record=' + my_record);
 		} else if (choice == 2) {
-			var url="rec_duplicate.php?record=" + my_record;
-			window.open(url);
+			window.open('rec_duplicate.php?record=' + my_record);
 		} else if (choice == 3) {
-			var url="rec_toproduct.php?record=" + my_record;
-			window.open(url);
+			window.open('rec_toproduct.php?record=' + my_record);
 		} else if (choice == 4) {
-                        var url="rec_print.php?record=" + my_record;
-                        window.open(url);
+                        window.open('rec_print.php?record=' + my_record);
                 } else if (choice == 5) {
-                        var url="rec_forum.php?record=" + my_record;
-                        window.open(url);
+                        window.open('rec_forum.php?record=' + my_record);
                 }
 		// Return to the original recipe
 		window.location.href = "rec_edit.php?record=" + my_record + "&return=" + my_return;

mercurial