The product and recipe editors disable the top menu so the user is forced to exit using the buttons on the first tab.

Sat, 23 Feb 2019 21:07:14 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Sat, 23 Feb 2019 21:07:14 +0100
changeset 283
879b81864e4e
parent 282
f765249d57d7
child 284
a93fcd87f561

The product and recipe editors disable the top menu so the user is forced to exit using the buttons on the first tab.

www/js/prod_edit.js file | annotate | diff | comparison | revisions
www/js/rec_edit.js file | annotate | diff | comparison | revisions
--- a/www/js/prod_edit.js	Sat Feb 23 19:55:42 2019 +0100
+++ b/www/js/prod_edit.js	Sat Feb 23 21:07:14 2019 +0100
@@ -90,6 +90,11 @@
 	var     mashRow = 0;
 	var     mashData = {};
 
+	/*
+	 * Remove the top menu so that we MUST use the buttons to leave the editor.
+	 */
+	$('#jqxMenu').jqxMenu('destroy');
+
 	console.log("record:" + my_record + "  return:" + my_return + "  theme:" + theme);
         $("#jqxLoader").jqxLoader({
                 width: 250,
@@ -5283,7 +5288,7 @@
 	$('#jqxTabs').jqxTabs({
 		theme: theme,
 		width: 1280,
-		height: 630,
+		height: 660,
 		autoHeight: false,
 		position: 'top'
 	});
--- a/www/js/rec_edit.js	Sat Feb 23 19:55:42 2019 +0100
+++ b/www/js/rec_edit.js	Sat Feb 23 21:07:14 2019 +0100
@@ -85,6 +85,11 @@
 	var	mashRow = 0;
 	var	mashData = {};
 
+	/*
+	 * Remove the top menu so that we MUST use the buttons to leave the editor.
+	 */
+	$('#jqxMenu').jqxMenu('destroy');
+
 	console.log("record:" + my_record + "  return:" + my_return + "  theme:" + theme);
 	$("#jqxLoader").jqxLoader({
 		width: 250,
@@ -3656,7 +3661,7 @@
 	$('#jqxTabs').jqxTabs({
 		theme: theme,
 		width: 1280,
-		height: 630,
+		height: 660,
 		autoHeight: false,
 		position: 'top'
 	});

mercurial