Added recipe print button.

Wed, 07 Nov 2018 16:25:05 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 07 Nov 2018 16:25:05 +0100
changeset 79
f3adf543f698
parent 78
f35a38e8c16f
child 80
75b9227fb98c

Added recipe print button.

www/js/rec_edit.js file | annotate | diff | comparison | revisions
www/rec_edit.php file | annotate | diff | comparison | revisions
--- a/www/js/rec_edit.js	Wed Nov 07 14:42:25 2018 +0100
+++ b/www/js/rec_edit.js	Wed Nov 07 16:25:05 2018 +0100
@@ -1236,6 +1236,13 @@
 
 	calcInit();
 
+	$("#Print").jqxButton({ template: "info", width: '80px', theme: theme });
+	$("#Print").click(function () {
+		// Open print in a new tab.
+		var url="rec_print.php?record=" + my_record;
+		window.open(url);
+	});
+
 	$("#Delete").jqxButton({ template: "danger", width: '80px', theme: theme });
 	$("#Delete").click(function () {
 		// Open a popup to confirm this action.
--- a/www/rec_edit.php	Wed Nov 07 14:42:25 2018 +0100
+++ b/www/rec_edit.php	Wed Nov 07 16:25:05 2018 +0100
@@ -90,9 +90,10 @@
         </tr>
        </table>
        <div style="float: right; margin-top: 30px; margin-bottom: 10px;">
-        <input style="margin-right: 100px;"  type="button" id="Delete" value="Delete" />
-        <input style="margin-right: 100px;"  type="button" id="Save" value="Save" />
-        <input style="margin-right: 410px;" type="button" id="Cancel" value="Cancel" />
+        <input style="margin-right: 100px;" type="button" id="Print"  value="Print" />
+        <input style="margin-right: 100px;" type="button" id="Delete" value="Delete" />
+        <input style="margin-right: 100px;" type="button" id="Save"   value="Save" />
+        <input style="margin-right: 320px;" type="button" id="Cancel" value="Cancel" />
        </div>
       </div>
      </div> <!-- tab algemeen -->

mercurial