www/js/inv_equipments.js

branch
stable
changeset 520
d25a1b160dba
parent 494
af28ebe4a779
child 528
202272a28052
--- a/www/js/inv_equipments.js	Sat Sep 14 10:41:35 2019 +0200
+++ b/www/js/inv_equipments.js	Fri Oct 18 13:12:46 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