1763 if (dataRecord.stage >= 10) { |
1763 if (dataRecord.stage >= 10) { |
1764 $("#locked").jqxCheckBox({ disabled:false }); |
1764 $("#locked").jqxCheckBox({ disabled:false }); |
1765 } |
1765 } |
1766 |
1766 |
1767 /* |
1767 /* |
1768 * When the brew is in progress or done, block equipment select. |
1768 * When the brew is in progress or done, block equipment select and delete. |
1769 */ |
1769 */ |
1770 if (dataRecord.stage > 1) |
1770 if (dataRecord.stage > 1) { |
1771 $("#equipmentSelect").jqxDropDownList({ disabled: true }); |
1771 $("#equipmentSelect").jqxDropDownList({ disabled: true }); |
1772 if (dataRecord.stage > 0) { |
|
1773 $("#Delete").jqxButton({ disabled: true }); |
1772 $("#Delete").jqxButton({ disabled: true }); |
1774 } |
1773 } |
1775 |
1774 |
1776 if (dataRecord.stage < 1) // Planning, no ingredients |
1775 if (dataRecord.stage < 1) // Planning, no ingredients |
1777 $('#jqxTabs').jqxTabs('disableAt', 8); // Brewday tab |
1776 $('#jqxTabs').jqxTabs('disableAt', 8); // Brewday tab |
5305 }); |
5304 }); |
5306 |
5305 |
5307 $("#Export").jqxButton({ template: "info", width: '80px', theme: theme }); |
5306 $("#Export").jqxButton({ template: "info", width: '80px', theme: theme }); |
5308 $("#Export").click(function () { |
5307 $("#Export").click(function () { |
5309 saveRecord(); |
5308 saveRecord(); |
5310 var url="prod_beerxml.php?record=" + my_record; |
5309 var url="prod_export.php?record=" + my_record + "&return=" + my_return + "&select=" + my_select + |
5311 window.open(url); |
5310 "&code=" + dataRecord.code + "&name=" + dataRecord.name; |
|
5311 window.location.href = url; |
5312 }); |
5312 }); |
5313 |
5313 |
5314 $("#Delete").jqxButton({ template: "danger", width: '80px', theme: theme }); |
5314 $("#Delete").jqxButton({ template: "danger", width: '80px', theme: theme }); |
5315 $("#Delete").click(function () { |
5315 $("#Delete").click(function () { |
5316 // Open a popup to confirm this action. |
5316 // Open a popup to confirm this action. |