diff -r fa4eb830c151 -r 9c4bc199be9e www/js/prod_export.js --- 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; });