www/js/inv_equipments.js

changeset 494
af28ebe4a779
parent 488
77f1617b6994
child 528
202272a28052
--- a/www/js/inv_equipments.js	Fri Sep 13 23:02:38 2019 +0200
+++ b/www/js/inv_equipments.js	Sat Sep 14 19:04:29 2019 +0200
@@ -168,7 +168,9 @@
 				}
 			});
 		}
-	};
+	},
+	dataAdapter = new $.jqx.dataAdapter(source),
+        editrow = -1;
 
 	// initialize the input fields.
 	$("#name").jqxInput({ theme: theme, width: 250, height: 23 });
@@ -213,8 +215,6 @@
 	$("#mash_max").jqxNumberInput( Spin1dec );
 	$("#efficiency").jqxNumberInput( Perc1dec );
 
-	var dataAdapter = new $.jqx.dataAdapter(source);
-	var editrow = -1;
 	// initialize jqxGrid
 	$("#jqxgrid").jqxGrid({
 		width: 1280,

mercurial