diff -r 2465dbc90ea4 -r 0fe366d953ab www/js/prod_export.js --- a/www/js/prod_export.js Mon Sep 16 17:26:38 2019 +0200 +++ b/www/js/prod_export.js Wed Sep 18 14:40:34 2019 +0200 @@ -33,6 +33,11 @@ $("#jqxRadioButton4").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton5").jqxRadioButton({ theme: theme, width: 250, height: 23 }); $("#jqxRadioButton6").jqxRadioButton({ theme: theme, width: 250, height: 23 }); + $("#jqxRadioButton7").jqxRadioButton({ theme: theme, width: 250, height: 23 }); + if (my_split != 0) { + $("#jqxRadioButton3").jqxRadioButton({ disabled: true }); + } + $('#jqxRadioButton1').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 1; @@ -42,20 +47,24 @@ choice = 2; }); $('#jqxRadioButton3').on('checked', function (event) { - $('#Start').jqxButton({ disabled: false }); - choice = 3; - }); + $('#Start').jqxButton({ disabled: false }); + choice = 3; + }); $('#jqxRadioButton4').on('checked', function (event) { - $('#Start').jqxButton({ disabled: false }); - choice = 4; - }); + $('#Start').jqxButton({ disabled: false }); + choice = 4; + }); $('#jqxRadioButton5').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); choice = 5; }); $('#jqxRadioButton6').on('checked', function (event) { + $('#Start').jqxButton({ disabled: false }); + choice = 6; + }); + $('#jqxRadioButton7').on('checked', function (event) { $('#Start').jqxButton({ disabled: false }); - choice = 6; + choice = 7; }); $('#Start').jqxButton({ template: "success", width: '100px', theme: theme, disabled: true }); @@ -65,12 +74,14 @@ } else if (choice == 2) { window.open('prod_duplicate.php?record=' + my_record); } else if (choice == 3) { + window.open('prod_divide.php?record=' + my_record); + } else if (choice == 4) { window.open('prod_torecipe.php?record=' + my_record); - } else if (choice == 4) { + } else if (choice == 5) { window.open('prod_print.php?record=' + my_record); - } else if (choice == 5) { + } else if (choice == 6) { window.open('prod_checklist.php?record=' + my_record); - } else if (choice == 6) { + } else if (choice == 7) { window.open('prod_forum.php?record=' + my_record); } // Return to the original product