diff -r 0fe366d953ab -r 10c6eeee60ce www/js/prod_export.js --- a/www/js/prod_export.js Wed Sep 18 14:40:34 2019 +0200 +++ b/www/js/prod_export.js Wed Sep 18 22:50:44 2019 +0200 @@ -34,8 +34,9 @@ $("#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) { + if ((my_split != 0) || (my_stage >= 6)) { $("#jqxRadioButton3").jqxRadioButton({ disabled: true }); + document.getElementById("pmpt3").style.color = "red"; } $('#jqxRadioButton1').on('checked', function (event) { @@ -74,7 +75,7 @@ } else if (choice == 2) { window.open('prod_duplicate.php?record=' + my_record); } else if (choice == 3) { - window.open('prod_divide.php?record=' + my_record); + window.location.href = 'prod_divide.php?record=' + my_record + '&return=' + my_return; } else if (choice == 4) { window.open('prod_torecipe.php?record=' + my_record); } else if (choice == 5) { @@ -85,7 +86,8 @@ 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; + if (choice != 3) + window.location.href = "prod_edit.php?record=" + my_record + "&return=" + my_return; }); });